Hacker News new | ask | show | jobs
by tomchuk 2287 days ago
As mentioned, you'll need to ensure your /etc/fahclient/client.xml includes:

  <config>
    <!-- Folding Slots -->
    <slot id='0' type='CPU'/>
    <slot id='1' type='GPU'/>
  </config>
If you check your logs in /var/lib/fahclient/logs, you'll probably see something like:

  CUDA Device 0: Platform:0 Device:0 Bus:51 Slot:0 Compute:7.5 Driver:10.2
         OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
                 libOpenCL.so: cannot open shared object file: No such file or
                 directory
Take that missing library over to the Ubuntu Package Search[0] and it will lead you to ocl-icd-opencl-dev

  apt install ocl-icd-opencl-dev
Restart fahclient and you should see something like:

   CUDA Device 0: Platform:0 Device:0 Bus:51 Slot:0 Compute:7.5 Driver:10.2
  OpenCL Device 0: Platform:0 Device:0 Bus:51 Slot:0 Compute:1.2 Driver:440.64
[0] https://packages.ubuntu.com/search?suite=bionic&arch=amd64&m...
1 comments

This doesn't fix the problem, since ocl-icd* and nvidia-libopencl* provide libOpenCL.so.1 and FAHClient looks for libOpenCL.so, so you need to add a symlink, in the same directory.