Help with linux and GPU not shown

chase1902
chase1902
Joined: 13 Aug 11
Posts: 37
Credit: 1264094642
RAC: 0
Topic 198226

Hi,
Looking for some help getting Boinc to recognize my GPU under Linux Lite.
CPU tasks working fine.
Pretty sure GPU driver is installed O.K.
Not used Linux before so it is driving me nuts as not used to doing anything under Linux, reading recent posts about linux could be files in the wrong place, however no idea how to check or change it.
Thanks in advance
John

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5850
Credit: 110041543952
RAC: 22449514

Help with linux and GPU not shown

Can you please answer a few questions about your OS and GPU?

1. 32 or 64 bit OS?
2. Make and full model of your GPU?
3. Are you using a DE (desktop environment)? If so, which one?
4. What text editor(s) are you able to use?
5. Are you using a distro version of BOINC or one from Berkeley?
6. Where is BOINC installed?
7. What is the version of the driver you have installed?
8. Is there a special user for BOINC or are you running under your own login? (Hopefully not a root login :-). )
9. Assuming you are using 64 bit OS, do you have a /usr/lib64 or just /usr/lib?
10. From a root terminal session can you run the command (the hash is the root prompt) :-

# find /usr -name -a -print where is exactly libOpenCL* for an AMD GPU, or exactly libcuda* for an nvidia GPU. This will tell you if you have the appropriate libs and exactly what they are called and where they are.

In simple language, this command will report the full path to any file in any directory below /usr whose name starts with the given string and ends in anything else at all (* means 'anything'). The search string is case sensitive so use caps where shown.

Post back your answers, thanks.

Cheers,
Gary.

chase1902
chase1902
Joined: 13 Aug 11
Posts: 37
Credit: 1264094642
RAC: 0

Hi Gary, 1. 64bit 2.

Hi Gary,

1. 64bit
2. Sapphire R290X
3. Linux Lite 2.6 Xfce 4.10
4. Don't know
5. distro
6. Good question, not sure
7. which driver do you mean,
Catalyst Control Centre reports driver version 15.20.1013
OpenGL version 4.4.13374
8. I would presume own login
9. Got a usr/lib and usr/lib32
10 I typed in # find /usr -name libOpenCL* -a -print
and nothing came up (doing something wrong there)

Thank you for your help, I am afraid fairly useless so far with linux. Spent far to many years with Windows.
If you don't mind helping a complete novice I would like to get this working.

John

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5850
Credit: 110041543952
RAC: 22449514

Seeing as you are using a

Seeing as you are using a distro version it's probably installed somewhere like /var/lib/boinc and there is probably a special user and group (boinc:boinc) that owns everything. If you look at the startup messages in the event log of BOINC Manager, it should tell you where things are installed. When you find the directory, check (ls -l) the owner and group permissions of the files there. Eventually, you may want to edit files in the BOINC tree and if you do you will need to be careful about permissions.

The fact that you can't find any libOpenCL variants makes it likely that you don't have these compute libs installed and that could be why BOINC can't detect your GPU. During startup the Berkeley client looks for /usr/lib/libOpenCL.so and if it can't find that lib the client doesn't know you have a usable AMD GPU.

You need to become familiar with your distro's package management system. I know nothing about your distro but it could easily be that the fglrx driver and the OpenCL libs are in separate packages. AMD provide Catalyst drivers for Linux that have everything, including the OpenCL libs bundled but distros may have separated the components into different packages. That's the case with my distro. If your distro has a forum you should check there to find who maintains BOINC and the Catalyst drivers. Ask if the fglrx driver is packaged separately to the OpenCL libs. You should be able to search using the package management tools to see if those names exist in different packages.

I choose not to use a distro package for BOINC but to just extract the components from a download from Berkeley. This gives me the freedom to install BOINC under my user's home directory - /home/gary/BOINC and have all the files owned by gary:gary with complete freedom to edit whatever I like without having to worry about file permissions. I also know exactly where everything is without having to worry about where the package maintainer thought would be a good place to store various bits and pieces :-). It's also very easy to rapidly change versions when I want to try a new one - essentially just overwrite three old executables with the three new ones.

Quote:
If you don't mind helping a complete novice I would like to get this working.


I'll certainly try to help. There's quite a bit of info out there about running BOINC on Linux and some of it is quite good. It's easily found with google. Things you are going to need eventually are a terminal emulator, file manager and a good simple text editor - the linux equivalents of the dos command prompt, windows explorer and notepad. I use KDE as a desktop environment so I use konsole, dolphin and kwrite for those three. There are bound to be equivalents for Xfce.

Cheers,
Gary.

floyd
floyd
Joined: 12 Sep 11
Posts: 133
Credit: 186610495
RAC: 0

If you need help with BOINC

If you need help with BOINC it's always a good idea to post those startup messages that Gary mentioned.

Quote:
I typed in # find /usr -name libOpenCL* -a -print
and nothing came up (doing something wrong there)


You did not really type "#", did you? That would indeed be wrong. "#" indicates a shell prompt, precisely a root shell prompt. If you actually type it, it makes the whole line a comment.
Try it again without the hash sign. If you find /usr/lib/libOpenCL.so.1 but not /usr/lib/libOpenCL.so, run "sudo apt-get install fglrx-dev" and look again.

Explanation: Linux Lite seems to be based on Ubuntu trusty which as far as I can see contains everything needed in the fglrx package, except the infamous libOpenCL.so link. That is installed by fglrx-dev.

chase1902
chase1902
Joined: 13 Aug 11
Posts: 37
Credit: 1264094642
RAC: 0

Getting somewhere, thank you

Getting somewhere, thank you for your help.

Boinc is in /var/lib/boinc-client

Ran Floyd suggestion

/usr/lib/libOpenCL.so
/usr/lib/libOpenCL.so.1
/usr/lib32/libOpenCL.so.1

AgentB
AgentB
Joined: 17 Mar 12
Posts: 915
Credit: 513211304
RAC: 0

OK ... If you could cut and

OK ... If you could cut and paste the first 20-30 lines of your boinc event log, that would be helpful.

There are some helpful reference posts here Boinc GPU forum to read.

chase1902
chase1902
Joined: 13 Aug 11
Posts: 37
Credit: 1264094642
RAC: 0

Mon 14 Sep 2015 06:17:40 PM

Mon 14 Sep 2015 06:17:40 PM BST | | Starting BOINC client version 7.2.42 for x86_64-pc-linux-gnu
Mon 14 Sep 2015 06:17:40 PM BST | | log flags: file_xfer, sched_ops, task
Mon 14 Sep 2015 06:17:40 PM BST | | Libraries: libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Mon 14 Sep 2015 06:17:40 PM BST | | Data directory: /var/lib/boinc-client
Mon 14 Sep 2015 06:17:40 PM BST | | OpenCL CPU: Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz (OpenCL driver vendor: Advanced Micro Devices, Inc., driver version 1729.3 (sse2,avx), device version OpenCL 1.2 AMD-APP (1729.3))
Mon 14 Sep 2015 06:17:40 PM BST | | No usable GPUs found
Mon 14 Sep 2015 06:17:40 PM BST | | Host name: Storm
Mon 14 Sep 2015 06:17:40 PM BST | | Processor: 8 GenuineIntel Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz [Family 6 Model 62 Stepping 4]
Mon 14 Sep 2015 06:17:40 PM BST | | Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
Mon 14 Sep 2015 06:17:40 PM BST | | OS: Linux: 3.13.0-62-generic
Mon 14 Sep 2015 06:17:40 PM BST | | Memory: 15.61 GB physical, 15.94 GB virtual
Mon 14 Sep 2015 06:17:40 PM BST | | Disk: 42.88 GB total, 36.38 GB free
Mon 14 Sep 2015 06:17:40 PM BST | | Local time is UTC +1 hours
Mon 14 Sep 2015 06:17:40 PM BST | | Config: GUI RPCs allowed from:
Mon 14 Sep 2015 06:17:40 PM BST | Einstein@Home | URL http://einstein.phys.uwm.edu/; Computer ID 12041254; resource share 100
Mon 14 Sep 2015 06:17:40 PM BST | Einstein@Home | General prefs: from Einstein@Home (last modified 10-Sep-2015 22:25:09)
Mon 14 Sep 2015 06:17:40 PM BST | Einstein@Home | Computer location: work
Mon 14 Sep 2015 06:17:40 PM BST | | General prefs: using separate prefs for work
Mon 14 Sep 2015 06:17:40 PM BST | | Reading preferences override file
Mon 14 Sep 2015 06:17:40 PM BST | | Preferences:
Mon 14 Sep 2015 06:17:40 PM BST | | max memory usage when active: 15987.23MB
Mon 14 Sep 2015 06:17:40 PM BST | | max memory usage when idle: 15987.23MB
Mon 14 Sep 2015 06:17:40 PM BST | | max disk usage: 35.53GB
Mon 14 Sep 2015 06:17:40 PM BST | | max CPUs used: 6
Mon 14 Sep 2015 06:17:40 PM BST | | suspend work if non-BOINC CPU load exceeds 25%
Mon 14 Sep 2015 06:17:40 PM BST | | (to change preferences, visit a project web site or select Preferences in the Manager)
Mon 14 Sep 2015 06:17:40 PM BST | | gui_rpc_auth.cfg is empty - no GUI RPC password protection
Mon 14 Sep 2015 06:17:40 PM BST | | Not using a proxy

Thanks

John

AgentB
AgentB
Joined: 17 Mar 12
Posts: 915
Credit: 513211304
RAC: 0

RE: Mon 14 Sep 2015

Quote:

Mon 14 Sep 2015 06:17:40 PM BST | | OpenCL CPU: Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz (OpenCL driver vendor: Advanced Micro Devices, Inc., driver version 1729.3 (sse2,avx), device version OpenCL 1.2 AMD-APP (1729.3))
Mon 14 Sep 2015 06:17:40 PM BST | | No usable GPUs found

OK These two lines are interesting.

From the command line (starting within a X-window (not Ctrl-Alt-F1) run clinfo

It should display a lot of output - you can filter it by using grep - to show lines with the word Device... I see.

agentb@gluon:~$ clinfo | grep Device

Platform Vendor: Advanced Micro Devices, Inc.
Device Type: CL_DEVICE_TYPE_GPU

If you see Device type GPU then OpenCL does see your GPU (but boinc may not when boinc starts)

If that is the case, then try manually stop and restart boinc from the command line.

This is where things get a bit different for different distros and versions i think.

Assuming same as my Ubuntu 14.04.2 LTS running from the command line

sudo service boinc-client stop
sudo service boinc-client start

which runs the system boinc stop and start scripts. You should be prompted for the root system password.

This may or may not start the GPU crunching, again the event log around that point is helpful for us.

Good luck.

chase1902
chase1902
Joined: 13 Aug 11
Posts: 37
Credit: 1264094642
RAC: 0

AgentB Yes i'm seeing Device

AgentB
Yes i'm seeing Device Type: CL_DEVICE_TYPE_GPU

Ran
sudo service boinc-client stop
sudo service boinc-client start

No luck with GPU crunching, Boinc did stop and start.

Log files
Tue 15 Sep 2015 12:01:56 AM BST | | Starting BOINC client version 7.2.42 for x86_64-pc-linux-gnu
Tue 15 Sep 2015 12:01:56 AM BST | | log flags: file_xfer, sched_ops, task
Tue 15 Sep 2015 12:01:56 AM BST | | Libraries: libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Tue 15 Sep 2015 12:01:56 AM BST | | Data directory: /var/lib/boinc-client
Tue 15 Sep 2015 12:01:56 AM BST | | OpenCL CPU: Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz (OpenCL driver vendor: Advanced Micro Devices, Inc., driver version 1729.3 (sse2,avx), device version OpenCL 1.2 AMD-APP (1729.3))
Tue 15 Sep 2015 12:01:56 AM BST | | No usable GPUs found
Tue 15 Sep 2015 12:01:56 AM BST | | Host name: Storm
Tue 15 Sep 2015 12:01:56 AM BST | | Processor: 8 GenuineIntel Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz [Family 6 Model 62 Stepping 4]
Tue 15 Sep 2015 12:01:56 AM BST | | Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
Tue 15 Sep 2015 12:01:56 AM BST | | OS: Linux: 3.13.0-62-generic
Tue 15 Sep 2015 12:01:56 AM BST | | Memory: 15.61 GB physical, 15.94 GB virtual
Tue 15 Sep 2015 12:01:56 AM BST | | Disk: 42.88 GB total, 36.28 GB free
Tue 15 Sep 2015 12:01:56 AM BST | | Local time is UTC +1 hours
Tue 15 Sep 2015 12:01:56 AM BST | | Config: GUI RPCs allowed from:
Tue 15 Sep 2015 12:01:56 AM BST | Einstein@Home | URL http://einstein.phys.uwm.edu/; Computer ID 12041254; resource share 100
Tue 15 Sep 2015 12:01:56 AM BST | Einstein@Home | General prefs: from Einstein@Home (last modified 10-Sep-2015 22:25:09)
Tue 15 Sep 2015 12:01:56 AM BST | Einstein@Home | Computer location: work
Tue 15 Sep 2015 12:01:56 AM BST | | General prefs: using separate prefs for work
Tue 15 Sep 2015 12:01:56 AM BST | | Reading preferences override file
Tue 15 Sep 2015 12:01:56 AM BST | | Preferences:
Tue 15 Sep 2015 12:01:56 AM BST | | max memory usage when active: 15987.23MB
Tue 15 Sep 2015 12:01:56 AM BST | | max memory usage when idle: 15987.23MB
Tue 15 Sep 2015 12:01:56 AM BST | | max disk usage: 35.45GB
Tue 15 Sep 2015 12:01:56 AM BST | | max CPUs used: 6
Tue 15 Sep 2015 12:01:56 AM BST | | suspend work if non-BOINC CPU load exceeds 25%
Tue 15 Sep 2015 12:01:56 AM BST | | (to change preferences, visit a project web site or select Preferences in the Manager)
Tue 15 Sep 2015 12:01:56 AM BST | | gui_rpc_auth.cfg is empty - no GUI RPC password protection
Tue 15 Sep 2015 12:01:56 AM BST | | Not using a proxy

chase1902
chase1902
Joined: 13 Aug 11
Posts: 37
Credit: 1264094642
RAC: 0

chase1902@Storm:~$ clinfo |

chase1902@Storm:~$ clinfo | grep Device
Platform Vendor: Advanced Micro Devices, Inc.
Device Type: CL_DEVICE_TYPE_GPU
Device Topology: PCI[ B#1, D#0, F#0 ]
Unified memory for Host and Device: 0
Device endianess: Little
Queue on Device properties:
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 2.0
Device Type: CL_DEVICE_TYPE_CPU
Unified memory for Host and Device: 1
Device endianess: Little
Queue on Device properties:
Device OpenCL C version: OpenCL C 1.2

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.