File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,10 @@ message(STATUS "Using parallel policies with ${ONEDPL_BACKEND} backend")
151151string (TOLOWER ${ONEDPL_BACKEND} ONEDPL_BACKEND)
152152
153153if (ONEDPL_ENABLE_SIMD)
154- if (NOT INTEL_LLVM_COMPILER OR NOT INTEL_LLVM_COMPILER_VERSION VERSION_LESS 2021.4)
154+ # MSVC supports OpenMP 2.0 which is not sufficent for SIMD execution
155+ # TODO: check if -openmp:experimental can be used
156+ if ((NOT INTEL_LLVM_COMPILER AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
157+ OR NOT INTEL_LLVM_COMPILER_VERSION VERSION_LESS 2021.4)
155158 foreach (_simd_flag -fopenmp-simd /Qopenmp-simd -qopenmp-simd -openmp-simd)
156159 string (MAKE_C_IDENTIFIER ${_simd_flag} FLAG_DISPLAY_NAME)
157160 check_cxx_compiler_flag(${_simd_flag} ${FLAG_DISPLAY_NAME} _option)
You can’t perform that action at this time.
0 commit comments