-
- Downloads
CUDA: Add support for Clang compiler
When crosscompiling we pass the sysroot. We need to try various architecture flags. Clang doesn't automatically select one that works. First try the ones that are more likely to work for modern installations: * <=sm_50 is deprecated since CUDA 10.2, try sm_52 first for future compatibility. * <=sm_20 is removed since CUDA 9.0, try sm_30. Otherwise fallback to Clang's current default. Currently that's `sm_20`, the lowest it supports. Separable compilation isn't supported yet. Fixes: #16586
Showing
- Help/prop_tgt/CUDA_STANDARD.rst 1 addition, 1 deletionHelp/prop_tgt/CUDA_STANDARD.rst
- Help/release/dev/cuda-clang.rst 4 additions, 0 deletionsHelp/release/dev/cuda-clang.rst
- Modules/CMakeCUDAInformation.cmake 14 additions, 13 deletionsModules/CMakeCUDAInformation.cmake
- Modules/CMakeCompilerIdDetection.cmake 1 addition, 2 deletionsModules/CMakeCompilerIdDetection.cmake
- Modules/CMakeDetermineCUDACompiler.cmake 55 additions, 5 deletionsModules/CMakeDetermineCUDACompiler.cmake
- Modules/CMakeTestCUDACompiler.cmake 7 additions, 2 deletionsModules/CMakeTestCUDACompiler.cmake
- Modules/Compiler/Clang-CUDA.cmake 25 additions, 0 deletionsModules/Compiler/Clang-CUDA.cmake
- Modules/Compiler/NVIDIA-CUDA.cmake 4 additions, 0 deletionsModules/Compiler/NVIDIA-CUDA.cmake
- Modules/Platform/Windows-NVIDIA-CUDA.cmake 4 additions, 0 deletionsModules/Platform/Windows-NVIDIA-CUDA.cmake
- Source/cmGeneratorTarget.cxx 14 additions, 0 deletionsSource/cmGeneratorTarget.cxx
Loading
Please register or sign in to comment