-
- Downloads
CUDA: Compute CMAKE_CUDA_RUNTIME_LIBRARY default from toolchain
Since commit 0d014513 (CUDA: Add abstraction for cuda runtime selection, 2019-11-29, v3.17.0-rc1~83^2) we add CUDA runtime library selection flags by default. To maintain backwards compatibility the default CUDA runtime library needs to be computed based on what libraries are found on the initial compiler invocation. For example a toolchain could establish initial flags that have all CUDA compilations using the runtime version, and if we don't detect this we will try to link to both the static and shared runtime. Co-Author: Brad King <brad.king@kitware.com> Fixes: #20708
Showing
- Help/prop_tgt/CUDA_RUNTIME_LIBRARY.rst 2 additions, 2 deletionsHelp/prop_tgt/CUDA_RUNTIME_LIBRARY.rst
- Help/variable/CMAKE_CUDA_RUNTIME_LIBRARY.rst 2 additions, 1 deletionHelp/variable/CMAKE_CUDA_RUNTIME_LIBRARY.rst
- Modules/CMakeCUDACompiler.cmake.in 2 additions, 0 deletionsModules/CMakeCUDACompiler.cmake.in
- Modules/CMakeDetermineCUDACompiler.cmake 28 additions, 0 deletionsModules/CMakeDetermineCUDACompiler.cmake
- Modules/CMakeDetermineCompilerId.cmake 5 additions, 1 deletionModules/CMakeDetermineCompilerId.cmake
- Modules/Compiler/NVIDIA-CUDA.cmake 0 additions, 1 deletionModules/Compiler/NVIDIA-CUDA.cmake
- Modules/Platform/Windows-NVIDIA-CUDA.cmake 0 additions, 1 deletionModules/Platform/Windows-NVIDIA-CUDA.cmake
- Tests/CudaOnly/CMakeLists.txt 1 addition, 0 deletionsTests/CudaOnly/CMakeLists.txt
- Tests/CudaOnly/SharedRuntimeViaCUDAFlags/CMakeLists.txt 15 additions, 0 deletionsTests/CudaOnly/SharedRuntimeViaCUDAFlags/CMakeLists.txt
- Tests/CudaOnly/SharedRuntimeViaCUDAFlags/main.cu 5 additions, 0 deletionsTests/CudaOnly/SharedRuntimeViaCUDAFlags/main.cu
Loading
Please register or sign in to comment