diff options
author | Raul Tambre <raul@tambre.ee> | 2021-12-19 10:39:41 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2022-01-27 19:43:22 (GMT) |
commit | 5f667d783a917a2dc70fcdfaede6c3fbdc3c9549 (patch) | |
tree | 116f37d91eb18798cd096f6e5900c20b5277baca /Modules/CMakeDetermineCUDACompiler.cmake | |
parent | d282ca55b8219b04dd03ff1d7125ce65a671ec07 (diff) | |
download | CMake-5f667d783a917a2dc70fcdfaede6c3fbdc3c9549.zip CMake-5f667d783a917a2dc70fcdfaede6c3fbdc3c9549.tar.gz CMake-5f667d783a917a2dc70fcdfaede6c3fbdc3c9549.tar.bz2 |
CUDA: Actually use reverse architecture deprecation order for Clang
The code now matches what the comment describes.
This mistake seems to have been present since the initial introduction in
commit 5df21adf (CUDA: Add support for Clang compiler, 2020-05-07).
Diffstat (limited to 'Modules/CMakeDetermineCUDACompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCUDACompiler.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCUDACompiler.cmake b/Modules/CMakeDetermineCUDACompiler.cmake index df71799..49e4c75 100644 --- a/Modules/CMakeDetermineCUDACompiler.cmake +++ b/Modules/CMakeDetermineCUDACompiler.cmake @@ -283,7 +283,7 @@ if(NOT CMAKE_CUDA_COMPILER_ID_RUN) if(NOT CMAKE_CUDA_ARCHITECTURES) # Clang doesn't automatically select an architecture supported by the SDK. # Try in reverse order of deprecation with the most recent at front (i.e. the most likely to work for new setups). - foreach(arch "20" "30" "52") + foreach(arch "52" "30" "20") list(APPEND CMAKE_CUDA_COMPILER_ID_TEST_FLAGS_FIRST "${clang_test_flags} --cuda-gpu-arch=sm_${arch}") endforeach() endif() |