The boinc package has a USE=cuda flag which pulls in dev-util/nvidia-cuda-toolkit but this is not actually necessary to run CUDA tasks in boinc. The required libraries are already provided by x11-drivers/nvidia-drivers $ equery f x11-drivers/nvidia-drivers | grep libcuda.so /usr/lib/libcuda.so /usr/lib/libcuda.so.1 /usr/lib/libcuda.so.470.63.01 /usr/lib64/libcuda.so /usr/lib64/libcuda.so.1 /usr/lib64/libcuda.so.470.63.01 However, virtual/opencl does need to be installed in order to run OpenCL tasks (nvidia-drivers can run both CUDA and OpenCL tasks). Suggestion: remove the USE=cuda flag and add a USE=opencl flag which adds a dependency on virtual/opencl. Reproducible: Always
Actually, USE=cuda is useful to pull in x11-drivers/nvidia-drivers but I still think the dev-util/nvidia-cuda-toolkit dependency is unnecessary and should be dropped.
I'll try this out on my machine. I wanted to bump the client anyway.
Will be done shortly cuda USE flags stays, opencl USE flag is added. VIDEO_CARDS will be heeded. I really like it that neither the cg-toolkit nor the cuda-toolkit are needed any more. Those are giant monsters!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3257d73e3a2bc5076a4ee2646de0ef530dbd36b5 commit 3257d73e3a2bc5076a4ee2646de0ef530dbd36b5 Author: Sven Eden <sven.eden@prydeworx.com> AuthorDate: 2022-07-27 11:48:04 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-08-01 08:34:39 +0000 sci-misc/boinc: Untangle CUDA/OpenCL for nvidia and fix dependencies * OpenCL is not needed to run CUDA apps * BOINC can use CUDA via nvidia-drivers, dev-util/nvidia-cuda-toolkit is not neccessary * BOINC can use OpenCL via nvidia-drivers, media-gfx/nvidia-cg-toolkit is not neccessary * USE flag "opencl" pulls in virtual/opencl instead. Bug: https://bugs.gentoo.org/819378 Closes: https://bugs.gentoo.org/819378 Signed-off-by: Sven Eden <sven.eden@prydeworx.com> Signed-off-by: Florian Schmaus <flow@gentoo.org> sci-misc/boinc/boinc-7.20.2-r2.ebuild | 6 +++--- sci-misc/boinc/boinc-9999.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3257d73e3a2bc5076a4ee2646de0ef530dbd36b5 commit 3257d73e3a2bc5076a4ee2646de0ef530dbd36b5 Author: Sven Eden <sven.eden@prydeworx.com> AuthorDate: 2022-07-27 11:48:04 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-08-01 08:34:39 +0000 sci-misc/boinc: Untangle CUDA/OpenCL for nvidia and fix dependencies * OpenCL is not needed to run CUDA apps * BOINC can use CUDA via nvidia-drivers, dev-util/nvidia-cuda-toolkit is not neccessary * BOINC can use OpenCL via nvidia-drivers, media-gfx/nvidia-cg-toolkit is not neccessary * USE flag "opencl" pulls in virtual/opencl instead. Bug: https://bugs.gentoo.org/819378 Closes: https://bugs.gentoo.org/819378 Signed-off-by: Sven Eden <sven.eden@prydeworx.com> Signed-off-by: Florian Schmaus <flow@gentoo.org> sci-misc/boinc/boinc-7.20.2-r2.ebuild | 6 +++--- sci-misc/boinc/boinc-9999.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
Nicely done!