We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f86013 commit d21c660Copy full SHA for d21c660
CMakeLists.txt
@@ -115,6 +115,14 @@ if (NOT NOFORTRAN AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
115
endif()
116
set(NO_AVX512 1)
117
118
+
119
+ if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 17)
120
+ # LLVM Flang before version 17 doesn't support necessary OpenMP constructs.
121
+ if (USE_OPENMP)
122
+ message(STATUS "Disabling OpenMP for LLVM Flang before version 17.")
123
+ set(USE_OPENMP 0)
124
+ endif()
125
126
127
128
include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake")
0 commit comments