diff options
author | Brad King <brad.king@kitware.com> | 2023-09-25 18:19:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-25 20:06:36 (GMT) |
commit | 09d759dc7f2e47eef1d04d77aec6f1ed45274937 (patch) | |
tree | 212f07a811c04409935a5b097ebaf622f9cc957c /Modules | |
parent | 2a606636706fb9000b7c199b3d1592c40ed15ed1 (diff) | |
download | CMake-09d759dc7f2e47eef1d04d77aec6f1ed45274937.zip CMake-09d759dc7f2e47eef1d04d77aec6f1ed45274937.tar.gz CMake-09d759dc7f2e47eef1d04d77aec6f1ed45274937.tar.bz2 |
HIP: Simplify exclusion of AMD device runtime with NVIDIA GPUs
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/NVIDIA-HIP.cmake | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/Compiler/NVIDIA-HIP.cmake b/Modules/Compiler/NVIDIA-HIP.cmake index e144ff8..c888bc7 100644 --- a/Modules/Compiler/NVIDIA-HIP.cmake +++ b/Modules/Compiler/NVIDIA-HIP.cmake @@ -2,10 +2,8 @@ include(Compiler/NVIDIA) __compiler_nvidia_cxx_standards(HIP) __compiler_nvidia_cuda_flags(HIP) -# The ROCm hip-lang package does not work for nvcc, -# so provide a minimal one ourselves. -add_library(hip-lang::device INTERFACE IMPORTED) -set(_CMAKE_HIP_DEVICE_RUNTIME_TARGET hip-lang::device) +# The ROCm hip-lang cmake package's device runtime library is not needed for NVIDIA GPUs. +set(_CMAKE_HIP_DEVICE_RUNTIME_TARGET "") set(CMAKE_HIP_STANDARD_INCLUDE_DIRECTORIES "${CMAKE_HIP_COMPILER_ROCM_ROOT}/include") |