diff options
author | Brad King <brad.king@kitware.com> | 2023-09-12 13:05:56 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-09-12 13:06:15 (GMT) |
commit | 93d813d87c9e54488e19ad9cef141b9266dff153 (patch) | |
tree | f31f2450103e30b65ce3f142b5c557564d1dbf89 /Tests | |
parent | 3a1f2b2051e4b298259f016acea59673502dcad5 (diff) | |
parent | 6ebff6ebf8850a9372786bf56af8ee79dca6860d (diff) | |
download | CMake-93d813d87c9e54488e19ad9cef141b9266dff153.zip CMake-93d813d87c9e54488e19ad9cef141b9266dff153.tar.gz CMake-93d813d87c9e54488e19ad9cef141b9266dff153.tar.bz2 |
Merge topic 'vs-cuda-object-libs'
6ebff6ebf8 VS: Avoid unnecessary CUDA device linking for OBJECT libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8794
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CudaOnly/Fatbin/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/CudaOnly/OptixIR/CMakeLists.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CudaOnly/Fatbin/CMakeLists.txt b/Tests/CudaOnly/Fatbin/CMakeLists.txt index db0dc22..9974404 100644 --- a/Tests/CudaOnly/Fatbin/CMakeLists.txt +++ b/Tests/CudaOnly/Fatbin/CMakeLists.txt @@ -10,6 +10,7 @@ ${CMAKE_CURRENT_SOURCE_DIR}/../CUBIN/kernelB.cu ${CMAKE_CURRENT_SOURCE_DIR}/../CUBIN/kernelC.cu) set_property(TARGET CudaFATBIN PROPERTY CUDA_FATBIN_COMPILATION ON) +set_property(TARGET CudaFATBIN PROPERTY CUDA_SEPARABLE_COMPILATION ON) # Will use `cuModuleLoadFatBinary` to load the fatbinaries add_executable(CudaOnlyFatbin main.cu) diff --git a/Tests/CudaOnly/OptixIR/CMakeLists.txt b/Tests/CudaOnly/OptixIR/CMakeLists.txt index afeabda..f408d40 100644 --- a/Tests/CudaOnly/OptixIR/CMakeLists.txt +++ b/Tests/CudaOnly/OptixIR/CMakeLists.txt @@ -13,6 +13,7 @@ if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "11.7.0") set_property(TARGET CudaOptix PROPERTY CUDA_OPTIX_COMPILATION ON) endif() +set_property(TARGET CudaOptix PROPERTY CUDA_SEPARABLE_COMPILATION ON) set_property(TARGET CudaOptix PROPERTY CUDA_ARCHITECTURES native) add_executable(CudaOnlyOptixIR main.cu) |