Skip to content

Commit

Permalink
Don't use OpenMP with LLVM Flang before version 17.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Aug 5, 2023
1 parent bb0f779 commit 26f0dc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ if(NOT NOFORTRAN AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang" AND CMAKE_Fo
message(STATUS "Disabling AVX512 instructions for LLVM Flang before version 17.")
endif()
set(NO_AVX512 1)

# LLVM Flang before version 17 doesn't support necessary OpenMP constructs.
if (USE_OPENMP)
message(STATUS "Disabling OpenMP for LLVM Flang before version 17.")
set(USE_OPENMP 0)
endif()
endif()

include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake")
Expand Down

0 comments on commit 26f0dc2

Please sign in to comment.