Page 1 of 1

Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f)

Posted: Mon May 07, 2018 7:29 pm
by dieselnut
Hi there,

I've been folding on my GTX 670 under Linux for a number of years, most recently under Xubuntu 17.04. Well, I installed regular Ubuntu 18.04 over the weekend and can't seem to get the GPU to fold. The specific error I see in the logs is:

Code: Select all

WARNING:WU01:FS01:FahCore returned: UNKNOWN_ENUM (127 = 0x7f)
Please note that I made no hardware changes. I did update the BIOS, but after that I did a minimal install of 18.04. I then switched to use third party NVidia drivers, namely nvidia-driver-390. I configured my folding client as usual, but the GPU won't fold. Here is my configuration:

Code: Select all

<config>
  <!-- Client Control -->
  <fold-anon v='true'/>

  <!-- Folding Slot Configuration -->
  <gpu v='false'/>

  <!-- Network -->
  <proxy v=':8080'/>

  <!-- Slot Control -->
  <pause-on-battery v='false'/>
  <power v='full'/>

  <!-- User Information -->
  <passkey v='********************************'/>
  <team v='40965'/>
  <user v='dieselnut'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>
  <slot id='1' type='GPU'/>
</config>
After doing some debugging/searching, it seems that maybe I was missing the OpenCL packages? I installed the "headless" package, but that didn't seem to help. Here are all the NVidia package I have installed:

Code: Select all

dpkg -l | grep nvidia
ii  libnvidia-cfg1-390:amd64                   390.48-0ubuntu3                     amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.48-0ubuntu3                     all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-390:amd64                390.48-0ubuntu3                     amd64        NVIDIA libcompute package
ii  libnvidia-compute-390:i386                 390.48-0ubuntu3                     i386         NVIDIA libcompute package
ii  libnvidia-decode-390:amd64                 390.48-0ubuntu3                     amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-390:i386                  390.48-0ubuntu3                     i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-390:amd64                 390.48-0ubuntu3                     amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-390:i386                  390.48-0ubuntu3                     i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-390:amd64                   390.48-0ubuntu3                     amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-390:i386                    390.48-0ubuntu3                     i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-390:amd64                     390.48-0ubuntu3                     amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-390:i386                      390.48-0ubuntu3                     i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-390:amd64                   390.48-0ubuntu3                     amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-390:i386                    390.48-0ubuntu3                     i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-390                   390.48-0ubuntu3                     amd64        NVIDIA compute utilities
ii  nvidia-dkms-390                            390.48-0ubuntu3                     amd64        NVIDIA DKMS package
ii  nvidia-driver-390                          390.48-0ubuntu3                     amd64        NVIDIA driver metapackage
ii  nvidia-headless-390                        390.48-0ubuntu3                     amd64        NVIDIA headless metapackage
ii  nvidia-headless-no-dkms-390                390.48-0ubuntu3                     amd64        NVIDIA headless metapackage - no DKMS
ii  nvidia-kernel-common-390                   390.48-0ubuntu3                     amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-390                   390.48-0ubuntu3                     amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.8                               all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            390.42-0ubuntu1                     amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-390                           390.48-0ubuntu3                     amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-390              390.48-0ubuntu3                     amd64        NVIDIA binary Xorg driver
Any idea what may be going on? I did try bringing the CPU cores down to 6 (instead of automatic -1), but that didn't help anything.

Thanks!

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Mon May 07, 2018 8:53 pm
by Joe_H
Welcome to the folding support forum.

From the error being shown, it appears that the OpenCL support definitely is not installed or not completely installed. The last I looked, the xorg repository was working on providing a complete installer package for the nVidia drivers, not at home where I have some of this written down. There should be some OpenCL packages that go with the driver, a version that matches with the driver version you installed is needed to work properly.

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Mon May 07, 2018 9:10 pm
by toTOW
It's safer to download the driver directly from NV website ...

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Mon May 07, 2018 9:20 pm
by bollix47
Open a terminal and try the following:

Code: Select all

sudo apt install ocl-icd-opencl-dev
AND/OR

You can add the ppa for gpu drivers:

https://launchpad.net/~graphics-drivers ... ubuntu/ppa

I'm using nvidia-390 in 18.04 and have not had any problems other than running the command above.

EDIT re toTOW's comment ... that did not work well for me with 18.04 but using the ppa did work.
I've always been able to download and install the drivers from nvidia but for some reason was unable to do so with 18.04 and since the same drivers are in the ppa it's just a lot easier.

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Mon May 07, 2018 9:34 pm
by dieselnut
Woo! You guys are great, I installed ocl-icd-opencl-dev from the regular apt repository, along with the laundry list of dependencies, and now the GPU is running! Fantastic!

I wish the Folding@Home Linux install page would mention ANY of the problems with Ubuntu. The python-support dependency trips most people up as it is, and now this. Thank you gentlemen!

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Tue May 08, 2018 3:12 pm
by foldy
Is it possible for foldingforum.org admins to also edit the official FAH website to update technical details like the Linux Install Guide?

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Tue May 08, 2018 3:57 pm
by Joe_H
foldy wrote:Is it possible for foldingforum.org admins to also edit the official FAH website to update technical details like the Linux Install Guide?
This is something I can not do, and do not recall if any of the other admins can or do. Formerly 7im did editing of the support guides like the Installation Guides, and there have been a few others connected with the forum who have done so in the past.

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Wed May 09, 2018 8:07 pm
by dieselnut
I think we're doing this distributed project a disservice by providing partial and/or incorrect installation instructions, especially for an OS that has a large percentage of 24/7 uptime. In these days of plug-and-go Linux distributions such as Ubuntu, many users may not want to spend the time debugging installation issues. They may not even know how if they wanted to. Granted, the solution in this case is a bit of apt knowledge and some extra packages, but this is surely losing us potential folders. I would ask that the admins really try to update the docs, especially for Ubuntu. I haven't tried Debian or any other distro in some time (I come from Slackware), but Ubuntu users really do expect things to "just work".

Anyway, just my $0.02

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Wed May 09, 2018 8:57 pm
by SteveWillis
The only time I tried to install the drivers from the Nvidia download file I wound up having to reinstall Linux. I'll never do it again as the ppa install works great and I've done it many times with no problem.

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Sun Aug 04, 2019 6:53 am
by antropofob
Linux tutorial on official page is a disgrace for F@H project.
It recommends outdated client (v7.4.4), outdated Python fix and makes no mention of need to download opencl when using Nvidia drivers.

Re: Ubuntu 18.04, FahCore returned: UNKNOWN_ENUM (127 = 0x7f

Posted: Sun Aug 04, 2019 9:45 am
by toTOW
All guides are indeed quite old now ... and no one with the knowledge had the time update them. :(