mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 06:30:20 -06:00
CUDA 11.6 added the `nvcc -arch=native` flag to automatically compile for the host GPUs' architectures. Add support for specifying this special `native` value in `CMAKE_CUDA_ARCHITECTURES` and `CUDA_ARCHITECTURES`. During the compiler ABI detection step, detect the native architectures so we can pass them explicitly when using Clang or older versions of nvcc. Fixes: #22375
8 lines
254 B
ReStructuredText
8 lines
254 B
ReStructuredText
cuda-arch-native
|
|
----------------
|
|
|
|
* The :variable:`CMAKE_CUDA_ARCHITECTURES` variable and associated
|
|
:prop_tgt:`CUDA_ARCHITECTURES` target property now support the
|
|
special ``native`` value to compile for the architectures(s)
|
|
of the host's GPU(s).
|