Fight Covid-19 with Folding@home and NixOS

It’s me or there’s some projects using the CPU for covid now?

1 Like

Hmm right, I forgot to revert the statement on the post. Apparently there are some CPU projects as well.

@zimbatm Does the client need to be updated?

In response to popular demand, we have created an update to the Folding@home software that allows you to prioritize COVID-19 projects. We encourage you to upgrade as the new software includes important bug fixes and security updates. Downloads are available here. Please also join me in thanking the Center for the Science and Engineering of Living Systems (CSELS) at Washington University in St. Louis for funding the development of this software update.

EDIT: my bad, nixpkgs already has the new version, I was still using https://github.com/zimbatm/nixpkgs/archive/foldingathome.tar.gz.

thanks to @evils for updating the package <3

2 Likes

i updated it in hopes of getting remote control (connecting FAHControl to a remote FAHClient) working
it didn’t help, i still suspect this is an issue with FAHClient, has anyone been able to do this?

though with summer on the way and my old 5870’s lacking driver support, i’m in no hurry to get that working

It’s weird. My gpu is not detected and even if I have

services.xserver.videoDrivers = [ "nvidia" ];

in my config.

I’m pretty sure it used to work. I stopped running the program during a heat wave and I wanted to run it again.

EDIT: oh it might be fine now. Maybe it has something to do with the 22:35:19:Updated GPUs.txtline in the log.

I realise this thread is old, but it seems to be the only one on this topic, so hopefully I’ve come to the right place.
I’ve been trying to fah working consistently and failed miserably with the GPU side…

For AMD (6900XT) I use this configuration.nix elements:

hardware.opengl = {
enable = true;
driSupport32Bit = true;
extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
setLdLibraryPath = true;
extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
rocm-runtime
amdvlk
];
};

and (in summary) services.foldingathome.enable = true;

I do similar for Nvidia (1070Ti) - I need to review that and can add later.

The AMD fails with bad work units, being unable to find OpenCL (although it finds it on startup). The Nvidia failed after an update :frowning: All CPU elements work fine.

My main issue is how to debug - any suggestions?

Many thx

2 Likes

An update to my last post - with what appears to be a working solution!

I have an updated opengl config - see below. On its own, this does not make a difference to FAH, so you may not need all these depending on your other needs.

hardware.opengl = {
enable = true;
driSupport = true;
setLdLibraryPath = true;
extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
vaapiVdpau
libvdpau-va-gl
];
};

A key addition is the following package - mine is in the nix configuration as I run FAH as a service:

environment.systemPackages.ocl-icd (OpenCL ICD Loader for opencl-headers)

The above package is in the source, so I am not sure why it needs to be added explicitly!

This is still not quite enough - the last step is to amend the fahclient config.

The easiest way is to use the fahcontrol configure option and add these under the expert tab:

gpu-beta=true
opencl-index=0 (my GPU is pci bus 12, pci slot 0 which is why I think you set this to 0)

In config.xml it would be:

I have also played with
services.xmr-stak.openclSupport = true;

but I don’t think this is needed (noted here as it may help you with older AMD cards).

Hope this may be of help to folders out there…

1 Like

Sadly replying to my own post - the initial post is not necessarily a solution!

Having rebuilt my machines using the extant configuration.nix, I no longer have a folding GPU (back to my original error).

So I have either:

  1. Changed something in the config I’ve not noted (unlikely)
  2. There is something beyond the system config (for example I didn’t back up my /home) needed to make this work.
  3. The rebuild led to a newer version of the system which has broken something.

Does anyone have a working approach? Please share :slight_smile: :slight_smile:

1 Like