projjal opened a new pull request #9852:
URL: https://github.com/apache/arrow/pull/9852


   Currently when running gandiva in a OS where the OS doesn't support all the 
features of the host cpu, specifically vector instructions like AVX, AVX512 
which needs OS support (because the OS or the VM running the OS  is older 
version and doesn't support them, or passthrough is disabled for these features 
in the VM), llvm::sys::getHostCPUName detects the processor with these features 
and so gandiva generates jit compiled code with these vector instructions, 
which the OS is unable to execute and hence faults.
   Hence we need to detect the cpu features also and set it to the engine 
builder, since the OS might not support all the features that the detected cpu 
supports. This would also protect against other issues such as low end versions 
of SandyBridge, Haswell, and SkyLake processesors not supporting AVX at all.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to