CUDA: Support nvcc symlinking to ccache

Invoke `nvcc -v` to find the real CUDA bin directory.
This is needed if `nvcc` is a symlink to `ccache` or `colornvcc`.

Fixes: #21177
This commit is contained in:
Rong Ou
2021-01-07 16:20:24 -08:00
parent 1fb0670f4b
commit fb2afef620
4 changed files with 50 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
cuda-nvcc-ccache-symlink
------------------------
* ``CUDA`` language support now works when ``nvcc`` is a symbolic link,
for example due to a ``ccache`` or ``colornvcc`` wrapper script.
* The :module:`FindCUDAToolkit` module gained support for finding CUDA
toolkits when ``nvcc`` is a symbolic link,
for example due to a ``ccache`` or ``colornvcc`` wrapper script.