How to use _mm256_log_ps by leveraging Intel OpenCL SVML?
问题 I found that _mm256_log_ps can't be used with GCC7. Most common suggestions on stackoverflow is to use ICC or leveraging OpenCL SDK. After downloading SDK and extracting RPM file, there are three .so files: __ocl_svml_l9.so, __ocl_svml_e9.so, __ocl_svml_h8.so Can someone teach me how to call _mm256_log_ps with these .so files? Thank you. 回答1: You can use the log function from the Eigen library: #include <Eigen/Core> void foo(float* data, int size) { Eigen::Map<Eigen::ArrayXf> arr(data, size);