Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819378 - sci-misc/boinc: USE=cuda is not necessary
Summary: sci-misc/boinc: USE=cuda is not necessary
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Sven Eden
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-10-21 21:01 UTC by Benn Snyder
Modified: 2022-08-01 20:45 UTC (History)
2 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 Benn Snyder 2021-10-21 21:01:24 UTC
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
Comment 1 Benn Snyder 2021-11-09 16:31:30 UTC
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.
Comment 2 Sven Eden 2021-11-16 06:54:00 UTC
I'll try this out on my machine. I wanted to bump the client anyway.
Comment 3 Sven Eden 2022-07-27 12:05:17 UTC
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!
Comment 4 Larry the Git Cow gentoo-dev 2022-08-01 08:35:05 UTC
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(-)
Comment 5 Benn Snyder 2022-08-01 20:45:30 UTC
Nicely done!