No CMAKE_CUDA_COMPILER could be found (CMake)

… could it be, that i’ve to set the path myself? That’s probably because I’m running a relatively fresh Spark installation. What would be the cleanest way to link the compiler so that it is system-compatible and upgrade-proof?

The CUDA compiler identification is unknown
CMake Error at ggml/src/ggml-cuda/CMakeLists.txt:41 (enable_language):
No CMAKE_CUDA_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable “CUDACXX” or the CMake cache entry CMAKE_CUDA_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.

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.