diff options
author | Raul Tambre <raul@tambre.ee> | 2020-03-07 15:29:29 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-05-15 14:46:51 (GMT) |
commit | 5df21adf46be14061fe0e8ea53213d905e834600 (patch) | |
tree | 9e50ef0dc770d6ad68eede0ad04e5058d1775069 /Help | |
parent | dc2eae1f91f98019efe14c1398e10f23e93a7005 (diff) | |
download | CMake-5df21adf46be14061fe0e8ea53213d905e834600.zip CMake-5df21adf46be14061fe0e8ea53213d905e834600.tar.gz CMake-5df21adf46be14061fe0e8ea53213d905e834600.tar.bz2 |
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
Diffstat (limited to 'Help')
-rw-r--r-- | Help/prop_tgt/CUDA_STANDARD.rst | 2 | ||||
-rw-r--r-- | Help/release/dev/cuda-clang.rst | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Help/prop_tgt/CUDA_STANDARD.rst b/Help/prop_tgt/CUDA_STANDARD.rst index a3a2f56..6d6774e 100644 --- a/Help/prop_tgt/CUDA_STANDARD.rst +++ b/Help/prop_tgt/CUDA_STANDARD.rst @@ -7,7 +7,7 @@ This property specifies the CUDA/C++ standard whose features are requested to build this target. For some compilers, this results in adding a flag such as ``-std=gnu++11`` to the compile line. -Supported values are ``98``, ``11``, ``14``. +Supported values are ``98``, ``03``, ``11``, ``14``, ``17``, ``20``. If the value requested does not result in a compile flag being added for the compiler in use, a previous standard flag will be added instead. This diff --git a/Help/release/dev/cuda-clang.rst b/Help/release/dev/cuda-clang.rst new file mode 100644 index 0000000..fa5cd5a --- /dev/null +++ b/Help/release/dev/cuda-clang.rst @@ -0,0 +1,4 @@ +cuda-clang +---------- + +* The ``CUDA`` language now supports Clang as a compiler. |