Page 1 of 1

FAHControl and Fedora31

Posted: Mon Mar 16, 2020 2:34 pm
by drpaneas
First error is that by default the shebang at /usr/bin/FAHControl is using python which is by defaut pointing (to Fedora 31 system and most other systems) to python3. As a result I am getting:

$ FAHControl
File "/usr/bin/FAHControl", line 57
if sock.recv(1024).strip() == 'OK': print 'Ok'
^
SyntaxError: invalid syntax



Manually editing the file and changing:

Code: Select all

- #!/usr/bin/python
+ #!/usr/bin/python2
seems to be starting although I am getting this error from the command-line:

Code: Select all

$ FAHControl 
Loading theme Default
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fah/Client.py", line 352, in update
    self.process_message(app, type, data)
  File "/usr/lib/python2.7/site-packages/fah/Client.py", line 336, in process_message
    elif type == 'units': self.process_units(app, data)
  File "/usr/lib/python2.7/site-packages/fah/Client.py", line 287, in process_units
    if self.selected: self.config.update_status_ui(app)
  File "/usr/lib/python2.7/site-packages/fah/ClientConfig.py", line 534, in update_status_ui
    self.update_status_slots(app)
  File "/usr/lib/python2.7/site-packages/fah/ClientConfig.py", line 435, in update_status_slots
    app.slot_status_tree.get_selection().select_iter(selected_row)
TypeError: iter should be a GtkTreeIter
^CTraceback (most recent call last):
  File "/usr/bin/FAHControl", line 79, in <module>
    app.run()
  File "/usr/lib/python2.7/site-packages/fah/FAHControl.py", line 542, in run
    gtk.main()
KeyboardInterrupt

Another problem I have is that the GUI opens, when I go to the System Info tab, at the System Section I see:

Code: Select all

GPUs:1
GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 GPI104 [GeForce GTX 1070] 6463
CUDA Device 0 Platform: 0 Device:0 Bus:1 Slot:0 Compute:6.1 Driver:10.2
OpenCL: Not detected: clGetDeviceIDs() return -1
From the Logs tab I see:

Code: Select all

13:39:11:ERROR:WU00:FS00:Failed to start core: OpenCL device matching slot 0 not found, try setting 'opencl-index' manually
I have installed:

Code: Select all

sudo dnf install mesa-libOpenCL clinfo ocl-icd-devel
Please help :)

Re: FAHControl and Fedora31

Posted: Tue Mar 17, 2020 10:59 am
by foldy
To get OpenCL ready for FAH try:
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev

Re: FAHControl and Fedora31

Posted: Tue Mar 17, 2020 1:47 pm
by coredump4
Hi,
I just setup a GTX 1070 system on Fedora 31 with NVIDIA driver 440.64 and it's working fine.

Your 2nd error looks to simply be that the client selected the wrong GPU. Your log shows that GPU 0 is the GTX 1070, so edit /etc/fahclient/config.xml and look for the GPU slot and change the index to 0. Should look something like:

Code: Select all

  <slot id='0' type='GPU'>
    <client-type v='advanced'/>
    <gpu-index v='0'/>
    <verbosity v='5'/>
  </slot>
Then, restart the client.

good luck!

Re: FAHControl and Fedora31

Posted: Tue Mar 17, 2020 7:20 pm
by Joe_H
Just leave the verbosity at the default value of 3, higher values do not currently provide any useful information in the log file.