Skip to content

Commit

Permalink
Disable user of OpenMP when using nvc++ host compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
maddyscientist committed Jan 13, 2025
1 parent dbaeb72 commit ab7b1ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ endif()

find_package(Threads REQUIRED)
if(QUDA_OPENMP)
if(${CMAKE_CXX_COMPILER_ID} MATCHES "NVHPC")
message(FATAL_ERROR "Host compiler (nvc++) not supported with QUDA_OPENMP=ON")
endif()
find_package(OpenMP REQUIRED)
endif()

Expand Down

0 comments on commit ab7b1ae

Please sign in to comment.