summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2020-04-18 05:57:53 +0200
committerMaxime Gauduin2020-04-18 05:57:53 +0200
commit17b576ea59e2bf9ef3c83933dee73658d390ad88 (patch)
tree58b75f3da327e32465c0757b2a784ddfa3b9043d
parent66cb13aadd11209d8ede69cfff679819837c8a5f (diff)
downloadaur-17b576ea59e2bf9ef3c83933dee73658d390ad88.tar.gz
fix for nvidia, and possibly amd, gpus
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--foldingathome.service6
3 files changed, 10 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dfefee12c72c..051b374704bf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = foldingathome
pkgdesc = A distributed computing project for simulating protein dynamics
pkgver = 7.6.8
- pkgrel = 4
+ pkgrel = 6
url = https://foldingathome.org/
install = foldingathome.install
arch = x86_64
@@ -18,7 +18,7 @@ pkgbase = foldingathome
source = foldingathome.service
source = GPUs.txt
sha256sums = 588253c0042dcb0a6b97c9e16ccb8189b316df051094be4202881120255e5d31
- sha256sums = df76f31e5c7813c4f967fbe3b3c9947f9630b42de9ff945a38b554be4ac7b2c4
+ sha256sums = 252b2780506452f6f10bf046111a1b1675c0be5d858eecbf17f8977f6e5798c9
sha256sums = 5944a6df06b42c5edd4e5f0922f16e3f04cb755bd248d0e610c9262f3814aff9
pkgname = foldingathome
diff --git a/PKGBUILD b/PKGBUILD
index e0d65ba1b078..1ec35ecc0ab3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=foldingathome
pkgver=7.6.8
-pkgrel=4
+pkgrel=6
pkgdesc='A distributed computing project for simulating protein dynamics'
arch=(x86_64)
url=https://foldingathome.org/
@@ -29,7 +29,7 @@ source=(
GPUs.txt
)
sha256sums=('588253c0042dcb0a6b97c9e16ccb8189b316df051094be4202881120255e5d31'
- 'df76f31e5c7813c4f967fbe3b3c9947f9630b42de9ff945a38b554be4ac7b2c4'
+ '252b2780506452f6f10bf046111a1b1675c0be5d858eecbf17f8977f6e5798c9'
'5944a6df06b42c5edd4e5f0922f16e3f04cb755bd248d0e610c9262f3814aff9')
package() {
diff --git a/foldingathome.service b/foldingathome.service
index dea95bc43d79..c84b82a9f76d 100644
--- a/foldingathome.service
+++ b/foldingathome.service
@@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
User=fah
+SupplementaryGroups=video
DynamicUser=yes
ConfigurationDirectory=foldingathome
StateDirectory=fah
@@ -14,6 +15,11 @@ ExecStart=/usr/bin/FAHClient --config /etc/foldingathome/config.xml
CPUSchedulingPolicy=idle
IOSchedulingClass=3
+# Nvidia
+ReadWritePaths=-/dev/nvidia-uvm
+ExecStartPre=!-/usr/bin/nvidia-modprobe
+ExecStartPre=!-/usr/bin/nvidia-modprobe -c 0 -u
+
[Install]
WantedBy=multi-user.target