Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916976 - dev-util/nvidia-cuda-toolkit should not depend on x11-drivers/nvidia-drivers
Summary: dev-util/nvidia-cuda-toolkit should not depend on x11-drivers/nvidia-drivers
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-06 21:12 UTC by Sv. Lockal
Modified: 2024-03-21 13:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.