On 4/11/25 10:32, Andrea Pappacoda wrote:
Source: nvidia-cuda-toolkit Version: 12.2.140~12.2.2-2
Would it be possible to make the dependency on the Nvidia drivers optional?This way I could "cross compile" CUDA code from a device without Nvidia GPUs to a device which has.
That already works.apt-get install --no-install-recommends nvidia-cuda-toolkit does not pull in nvidia-kernel-dkms or nvidia-driver, but it does pull in libcuda1 (which is also built from src:nvidia-graphics-drivers).
Andreas