Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 916976

Summary: dev-util/nvidia-cuda-toolkit should not depend on x11-drivers/nvidia-drivers
Product: Gentoo Linux Reporter: Sv. Lockal <lockalsash>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: amadio, andrewammerlaan, mail
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=854345
Whiteboard:
Package list:
Runtime testing required: ---

Description Sv. Lockal 2023-11-06 21:12:50 UTC
Hi,

According to https://stackoverflow.com/questions/20186848/can-i-compile-a-cuda-program-without-having-a-cuda-device and quick attempt to install nvidia-cuda-toolkit-12.3.0.ebuild with removed x11-drivers/nvidia-drivers dependency, cuda compiler works fine without CUDA driver and NVIDIA GPU.

As a developer, I just want to check that my code compiles code on my machine and then occasionally test compiled binaries somewhere else (Google Colab, Saturn labs, etc).

Additionally, tools like hipify-clang require only CUDA headers, even if the target platform is AMD.

Could you unbind dev-util/nvidia-cuda-toolkit from x11-drivers/nvidia-drivers? Thanks!
Comment 1 Thaison Nguyen 2024-03-17 09:02:47 UTC
Unbinding dev-util/nvidia-cuda-toolkit from x11-drivers/nvidia-drivers may be interesting for using cuda inside WSL2.
Comment 2 Guilherme Amadio gentoo-dev 2024-03-17 12:46:47 UTC
I support removing the dependency as well. It might also be useful on Gentoo prefix environments.