Mountains

Mountains

Sunday, April 12, 2020

Folding at Home on Ubuntu 19.10 with AMD GPU

For future reference, there's a global pandemic on at the time I'm writing this.

I found out that Folding@Home was taking on various Covid-19 research projects, and though, since I had some computer laying around not doing much, so I installed the client and let it go. However, I'm mainly a Linux user, and the my RX 460 was not getting used. I read several pieces of advice on via google. Generally, linux, opencl, and AMD gpus have to exist in certain combinations in order for folding at home to work correctly.

I've been running FAH on a workstation with Ubuntu 19.10 and a AMD RX 460 graphics card.

To get things to work, I had to
(1) Remove opencl-mesa and rcom
(2) I have ocl-icd-opencl-dev installed.

(3) Install AMD's opencl from the amdgpupro package. (amdgpupro IS NOT REQUIRED)
I used this script to do it, though I had to modify the version numbers as is described in the comments:
https://gist.github.com/kytulendu/3351b5d0b4f947e19df36b1ea3c95cbe
(4) Add <slot id='1' type='GPU'/> to the config.xml file (like this)

Bonus
(5) Disable FAHClient as a service in /etc/init.d (https://foldingforum.org/viewtopic.php?f=61&t=25328)
(6) Run FAHClient as root

The machine runs great while folding, and seems as productive in linux as it does in windows. By running from the command line, this allows the computer to quickly freed for heavy lifting, or rebooted to other operating systems.