diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-04-27 18:49:50 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-05-03 15:52:23 (GMT) |
commit | e8591f1516edffe9fc2ef138e5933a1c9914e9e5 (patch) | |
tree | 48291e9460af4a2bd6179b18685161ac23757385 /Modules/CMakeTestCUDACompiler.cmake | |
parent | e0dbca93aae6b01f8b239d346a0bc99d2ca2473e (diff) | |
download | CMake-e8591f1516edffe9fc2ef138e5933a1c9914e9e5.zip CMake-e8591f1516edffe9fc2ef138e5933a1c9914e9e5.tar.gz CMake-e8591f1516edffe9fc2ef138e5933a1c9914e9e5.tar.bz2 |
CUDA: native/all/all-major generates minimal set of ptx code
Fixes #23459
Diffstat (limited to 'Modules/CMakeTestCUDACompiler.cmake')
-rw-r--r-- | Modules/CMakeTestCUDACompiler.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeTestCUDACompiler.cmake b/Modules/CMakeTestCUDACompiler.cmake index ea07482..853d655 100644 --- a/Modules/CMakeTestCUDACompiler.cmake +++ b/Modules/CMakeTestCUDACompiler.cmake @@ -52,6 +52,7 @@ if(CMAKE_CUDA_ABI_COMPILED) set(CMAKE_CUDA_ARCHITECTURES_NATIVE "${_CUDA_ARCHS_OUTPUT}") endif() list(REMOVE_DUPLICATES CMAKE_CUDA_ARCHITECTURES_NATIVE) + list(TRANSFORM CMAKE_CUDA_ARCHITECTURES_NATIVE APPEND "-real") else() if(NOT _CUDA_ARCHS_RESULT MATCHES "[0-9]+") set(_CUDA_ARCHS_STATUS " (${_CUDA_ARCHS_RESULT})") |