No CMAKE_CUDA_COMPILER could be found (CMake)

Without knowing more to attempt a repro I’m not certain what the problem is, however, you could try putting
CUDACXX=/usr/local/cuda-13.0/bin/nvcc
into /etc/environment so that it is applied when using sudo.

1 Like