@Takei: On a server? I'll probably go with it, but will change WantedBy=graphical.target
to WantedBy=default.target
.
Search Criteria
Package Details: foldingathome 8.4.9-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/foldingathome.git (read-only, click to copy) |
---|---|
Package Base: | foldingathome |
Description: | A distributed computing project for simulating protein dynamics |
Upstream URL: | https://foldingathome.org/ |
Keywords: | fah science |
Licenses: | GPL-3.0-or-later |
Submitter: | dtw |
Maintainer: | PlasticSoup |
Last Packager: | PlasticSoup |
Votes: | 179 |
Popularity: | 0.32 |
First Submitted: | 2007-06-28 14:55 (UTC) |
Last Updated: | 2024-12-09 00:07 (UTC) |
Dependencies (16)
- bzip2 (bzip2-gitAUR)
- expat (expat-gitAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- lz4 (lz4-gitAUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- sqlite (sqlite-fossilAUR)
- systemd-libs (systemd-chromiumos-libsAUR, systemd-libs-selinuxAUR, systemd-libs-gitAUR, systemd-libs-fmlAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- git (git-gitAUR, git-glAUR) (make)
- leveldb (leveldb-gitAUR) (make)
- libyaml (libyaml-gitAUR) (make)
- re2 (re2-gitAUR) (make)
- scons (make)
- snappy (snappy-gitAUR) (make)
- opencl-driver (opencl-nvidia-410xxAUR, amdapp-sdkAUR, opencl-nvidia-440xxAUR, vc4cl-gitAUR, opencl-nvidia-430xxAUR, opencl-legacy-amdgpu-proAUR, intel-compute-runtime-gitAUR, beignetAUR, opencl-nvidia-vulkanAUR, beignet-gitAUR, intel-openclAUR, clvk-gitAUR, opencl-rusticl-mesa-minimal-gitAUR, mesa-gitAUR, mesa-wsl2-gitAUR, opencl-nvidia-535xxAUR, opencl-nvidia-470xxAUR, amdonly-gaming-opencl-clover-mesa-gitAUR, amdonly-gaming-opencl-rusticl-mesa-gitAUR, opencl-nvidia-390xxAUR, opencl-nvidia-teslaAUR, opencl-amdAUR, intel-compute-runtime-binAUR, opencl-nvidia-betaAUR, intel-compute-runtime-legacy-binAUR, intel-compute-runtime-legacyAUR, opencl-nvidia-525xxAUR, opencl-510xx-nvidiaAUR, opencl-nvidia-340xxAUR, opencl-nvidia-550xxAUR, intel-compute-runtime, intel-oneapi-compiler-shared-runtime, opencl-clover-mesa, opencl-nvidia, opencl-rusticl-mesa, rocm-opencl-runtime) (optional) – GPU support
Required by (0)
Sources (2)
Latest Comments
« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 23 Next › Last »
alucryd commented on 2020-04-18 05:04 (UTC)
Takei commented on 2020-04-18 04:59 (UTC)
@BS86 @alucryd Can confirm works with the settings from BS86.
alucryd commented on 2020-04-18 04:06 (UTC) (edited on 2020-04-18 04:15 (UTC) by alucryd)
@lesto: Please have a read, look for DynamicUser: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
@andrej: You can't trust most people to know how to do that, this must come with the package. I added those lines with both !
and -
. That way nvidia will work out of the box and non nvidia systems will not be impacted. If this fails on an nvidia system you probably have bigger problems to deal with anyway. Also, nvidia-modprobe is setuid, so anyone can invoke this binary as root, but it seems systemd still applies some restrictions to it so !
it is.
@BS86: I still can't figure out why the video group is needed since virtually all the filesystem is read-only thanks to DynamicUser, unless amd has some files needed for opencl that are no world-readable? Also, before I add WantedBy=graphical.target I want to make sure it still works fine on a headless server.
@YanDoroshenko: You might want to read the comments.
YanDoroshenko commented on 2020-04-17 23:21 (UTC)
I'm unable to use GPU since today's update. I've tried everything I was able to find (and a couple of my own inventions) - all quite fruitless. Running FAHClient via sudo does the trick and GPU picks up right away with the same config and same command.
BS86 commented on 2020-04-17 21:46 (UTC) (edited on 2020-04-17 21:47 (UTC) by BS86)
And Success:
With After=network.target multi-user.target
and WantedBy=graphical.target
booting now works as expected.
Tried After=network.target graphical.target
and WantedBy=multi-user.target
first, but would not work due to obvious cycle-detection. System booted, but FAH service was not loaded.
BS86 commented on 2020-04-17 21:38 (UTC) (edited on 2020-04-17 21:48 (UTC) by BS86)
ok, with SupplementaryGroups=video
, OpenCL and FAH works and does find my Vega64 running with opencl-amd, but on reboot, the system breaks like expected. Had to chroot to get the system back working.
Will play around a bit with the WantedBy
and After
options to get fah loaded after X.
andrej commented on 2020-04-17 21:37 (UTC)
@alucryd As for NVidia, it's better to add a drop-in instead of changing the unit file. Also, I think the prefix should be !
, not -
. (A failure is not OK and, AFAIK, only root can modprobe.) This is only relevant for people with NVidia GPUs anyway.
On my system I've created /etc/systemd/system/foldingathome.service.d/modprobe.conf
containing this:
[Service]
ExecStartPre=!/usr/bin/nvidia-modprobe
ExecStartPre=!/usr/bin/nvidia-modprobe -c0 -u
(The first nvidia-modprobe is a no-op if you run a desktop or otherwise load the module automatically.)
The drop-in will show up in the status (after systemctl daemon-reload
etc.):
● foldingathome.service - Folding@home distributed computing client
Loaded: loaded (/usr/lib/systemd/system/foldingathome.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/foldingathome.service.d
└─modprobe.conf
Active: active (running) since Fri 2020-04-17 22:51:46 CEST; 10min ago
Process: 15205 ExecStartPre=/usr/bin/chown -R fah:fah /etc/foldingathome (code=exited, status=0/SUCCESS)
Process: 15207 ExecStartPre=/usr/bin/nvidia-modprobe (code=exited, status=0/SUCCESS)
Process: 15209 ExecStartPre=/usr/bin/nvidia-modprobe -c0 -u (code=exited, status=0/SUCCESS)
Main PID: 15212 (FAHClient)
Tasks: 65 (limit: 77025)
CGroup: /system.slice/foldingathome.service
...
lesto commented on 2020-04-17 20:22 (UTC)
in the service file you do: "/usr/bin/chown -R fah:fah /etc/foldingathome" I think this should be done by the install script instead, so it is done once and that is it.
also my xt5700x is seen as 5600, not sure where this GPUs.txt come from
fagianijunior commented on 2020-04-17 20:11 (UTC)
What is a newer or older AMD GPU? I has a Radeon R7
Takei commented on 2020-04-17 20:05 (UTC)
@alucryd sorry but it doesn't seem to work. Still the same error code even after another restart of the service. Anyways i'm off to bed.
Pinned Comments
SovietReimu1228 commented on 2024-08-22 14:48 (UTC)
I'll leave a note for those who are having trouble starting FAH after updating. You should do
pacman -Rs foldingathome
and install again. This will create thefah-client
user.