foldingathome can use CUDA, but requires at least two manual steps:
- add the foldingathome user to the 'video' group
- build nvidia-drivers with the 'uvm' USE flag
Having the ebuild do these if the 'cuda' USE flag is enabled seems like the best solution to me.
It is a nice idea, however this goes against use flag policy -- since this is a runtime-only config change and foldingathome itself doesn't change on disk, the use of a USE flag to control what is only a runtime dependency is not something acceptable in a gentoo-repo ebuild.
I am however not up to date on the proper method for managing optional runtime-only dependencies and so I will look up what the best method to notify users of this extra requirement would be.
As I recall, as of the latest version, foldingathome is already added to the video group by default though so that part should be addressed.
(In reply to Ian Stakenvicius from comment #1)
> I am however not up to date on the proper method for managing optional
> runtime-only dependencies and so I will look up what the best method to
> notify users of this extra requirement would be.
We use 'optfeature' from eutils.eclass before IUSE_RUNTIME is implemented. optfeature can be used to include a USE flag
optfeature "Nvidia's CUDA unit" x11-drivers/nvidia-drivers[uvm]
and it only prints this line if user doesn't have it installed.
Ah ok, I see that mentioned at <https://devmanual.gentoo.org/general-concepts/use-flags/index.html>.
I can find a few ebuilds which seem to use USE flags this way though: 'cuda' in sci-misc/boinc, 'opencl' in app-emulation/crossover-bin, 'ffmpeg' or 'pulseaudio' in www-client/firefox-bin.
If not though, a notification would probably be fine.