Skip to content

Commit

Permalink
Added --openmp:llvm flag to utilize latest version for min/max reduct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Mahesh1998 committed Sep 19, 2024
1 parent d790ac0 commit 39d5459
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/CheckDependentLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ endif()

if(WITH_OPENMP)
find_package(OpenMP REQUIRED)
if(MSVC AND OPENMP_FOUND)
# for min/max reduction
add_compile_options(-openmp:llvm)
endif()
endif()

# Data format options
Expand Down

0 comments on commit 39d5459

Please sign in to comment.