commit | d1b48bfabd6157309b3056967e6e30cc0ce07983 | [log] [tgz] |
---|---|---|
author | Brad King <brad.king@kitware.com> | Fri Mar 04 13:51:49 2022 -0500 |
committer | Brad King <brad.king@kitware.com> | Thu Mar 10 09:27:29 2022 -0500 |
tree | 3ce109b078bf5da4d866f6e2994bbce8246e4df1 | |
parent | 632752d62e8de2730796f509dbb10551351309c2 [diff] |
CUDA: Add support for CUDA_ARCHITECTURES=native 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