From ab7b1aeacd6ef3eb1c10b913add2ef63a60549ca Mon Sep 17 00:00:00 2001 From: maddyscientist Date: Mon, 13 Jan 2025 11:16:38 -0800 Subject: [PATCH] Disable user of OpenMP when using nvc++ host compiler --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 512a7b9baa..abcf27de99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()