Skip to content

CUDA: Always extract CUDA Toolkit root from nvcc verbose output

Given that NVCC can be provided by multiple different sources (NVIDIA HPC SDK, CUDA Toolkit, distro) each of which has a different layout, we need to extract the CUDA toolkit root from the compiler itself, allowing us to support numerious different scattered toolkit layouts.

The NVIDIA HPC SDK specifically ships two copies of nvcc one in compilers/bin/ and one in cuda/bin. Thus when using compilers/bin/nvcc the Toolkit root logic fails.

Fixes: #21750 (closed), #21763 (closed)

Edited by Brad King

Merge request reports