News for hackers. Stuff that matters.
Re:MatX: Efficient C++17 GPU numerical computing library wit... by cburdick13 on Wednesday October 04, 2023 @12:58AM (#37761011)
Hi, you can choose not to install the driver with a CUDA install, and to download the driver separately.
Re:MatX: Efficient C++17 GPU numerical computing library wit... by dheera on Wednesday October 04, 2023 @01:13AM (#37761070)
Only if you use the runfile, but that breaks yet other packages that specify 'cuda' as an apt dependency.

Your 'cuda' packages should use '>=' not '=='

e.g. 'cuda-12' should depend on nvidia>=525 NOT nvidia==525

Re:MatX: Efficient C++17 GPU numerical computing library wit... by cburdick13 on Wednesday October 04, 2023 @01:27AM (#37761131)
That's a fair point. I'll look into it.
Re:MatX: Efficient C++17 GPU numerical computing library wit... by cburdick13 on Wednesday October 04, 2023 @12:20PM (#37767409)
Hi, I looked into this and it seems that it is indeed using >=

Depends: cuda-libraries-11-8 (>= 11.8.0), cuda-drivers (>= 520.61.05)

Re:MatX: Efficient C++17 GPU numerical computing library wit... by dheera on Wednesday October 04, 2023 @12:53PM (#37768026)
Hm no, what you actually have is cuda-libraries-11-8 depends on cuda-drivers and cuda-drivers depends on cuda-drivers-520 = 520.61.05-1 where you have the version number repeated in the name. That is a really bad pattern for things intended to be backward compatible, as multiple installs of cuda will overwrite "cuda-drivers" and each is pegged to a certain "cuda-drivers-X" where X is part of the name. This results in some really weird dependency hells if you try to install more than 1 CUDA version at the same time depending on the order you install them.

    $ sudo apt show cuda-drivers
    Package: cuda-drivers
    Version: 520.61.05-1
    Priority: optional
    Section: multiverse/devel
    Maintainer: cudatools <[email protected]>
    Installed-Size: 7,168 B
    Depends: cuda-drivers-520 (= 520.61.05-1)