diff --git a/src/Platforms/CUDA/CUDADeviceManager.cpp b/src/Platforms/CUDA/CUDADeviceManager.cpp index 50dbd50dd1..e4a8d8428d 100644 --- a/src/Platforms/CUDA/CUDADeviceManager.cpp +++ b/src/Platforms/CUDA/CUDADeviceManager.cpp @@ -13,8 +13,8 @@ #include "CUDADeviceManager.h" #include -#include "CUDAruntime.hpp" #include "OutputManager.h" +#include "CUDAruntime.hpp" // Positioned here to avoid conflict between CUDA and GCC >= 12 headers. https://github.com/QMCPACK/qmcpack/pull/4814 #include "determineDefaultDeviceNum.h" namespace qmcplusplus diff --git a/src/Platforms/OMPTarget/CMakeLists.txt b/src/Platforms/OMPTarget/CMakeLists.txt index 131b7452b6..1425b909b7 100644 --- a/src/Platforms/OMPTarget/CMakeLists.txt +++ b/src/Platforms/OMPTarget/CMakeLists.txt @@ -9,7 +9,10 @@ #// File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory #////////////////////////////////////////////////////////////////////////////////////// -set(OMP_RT_SRCS OMPallocator.cpp OMPDeviceManager.cpp) +set(OMP_RT_SRCS OMPallocator.cpp) +if(ENABLE_OFFLOAD) + set(OMP_RT_SRCS ${OMP_RT_SRCS} OMPDeviceManager.cpp) +endif(ENABLE_OFFLOAD) set(OMP_LA_SRCS ompBLAS.cpp) add_library(platform_omptarget_runtime ${OMP_RT_SRCS})