Updating GPU drivers in Linux.

Message boards : Number crunching : Updating GPU drivers in Linux.
Message board moderation

To post messages, you must log in.

Previous · 1 · 2 · 3 · Next

AuthorMessage
Claggy
Volunteer tester

Send message
Joined: 5 Jul 99
Posts: 4654
Credit: 47,537,079
RAC: 4
United Kingdom
Message 1740599 - Posted: 8 Nov 2015, 15:38:38 UTC - in response to Message 1739755.  
Last modified: 8 Nov 2015, 15:54:06 UTC

You'll need a new BOINC 7.6.12(+) built after October 5th 2015, as that's the date my new AMD GPU detection code got added to the 7.6 branch.

This 7.6.12 for Ubuntu was built on October 31st. You can also add Locutus of Borg's PPA to your system's Software Sources and get frequently updated builds from there.

Don't think any of the Official Ubuntu/Debian or Locutusofborg Boinc's are built from the 7.6 head, But the 7.6.12 tag, any 7.6.12 builds will be just that, and not 7.6.12(+) builds, you'll have to wait for Boinc 7.6.14 for your AMD GPU fixes to be included.

Claggy
ID: 1740599 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1740609 - Posted: 8 Nov 2015, 16:19:33 UTC - in response to Message 1740599.  

Yeah, you're probably right. Could've hoped though, as it's quite easy to build multiple instances of a versions number by editing versions.h
ID: 1740609 · Report as offensive
Claggy
Volunteer tester

Send message
Joined: 5 Jul 99
Posts: 4654
Credit: 47,537,079
RAC: 4
United Kingdom
Message 1740617 - Posted: 8 Nov 2015, 17:10:56 UTC - in response to Message 1740573.  

It is simply amazing.

Updated to Boinc 7.6.12 and still getting ..........................

So 08 Nov 2015 14:38:40 CET | | Starting BOINC client version 7.6.12 for x86_64-pc-linux-gnu
So 08 Nov 2015 14:38:40 CET | | log flags: file_xfer, sched_ops, task
So 08 Nov 2015 14:38:40 CET | | Libraries: libcurl/7.41.0 OpenSSL/0.9.8zg zlib/1.2.7
So 08 Nov 2015 14:38:40 CET | | Data directory: /var/lib/boinc-client
So 08 Nov 2015 14:38:40 CET | | No usable GPUs found
So 08 Nov 2015 14:38:40 CET | | Host name: Mike-FX-L
So 08 Nov 2015 14:38:40 CET | | Processor: 8 AuthenticAMD AMD FX(tm)-8350 Eight-Core Processor [Family 21 Model 2 Stepping 0]


What i have tried so far.

- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo apt-get install lib32gcc1
- sudo aticonfig --initial --force
- reboot

Also made links to libOpenCL.so and libOpenCL.so.1

- sudo aticonfig --initial --force
- reboot


Boinc still refuses to detect my GPU.

One thing is for sure if Linux wants to become a windows replacement it has to get more user friendly.

This is very annoying.

What Linux distro are you running now? Where did you get Boinc 7.6.12 from? What Boinc packages did you install?

Claggy
ID: 1740617 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740619 - Posted: 8 Nov 2015, 17:14:06 UTC
Last modified: 8 Nov 2015, 17:17:02 UTC

What Linux distro are you running now? Where did you get Boinc 7.6.12 from? What Boinc packages did you install?

Claggy


Linux Mint 17.2, based on Ubuntu 14.04.
Check my thread at Lunatics.


With each crime and every kindness we birth our future.
ID: 1740619 · Report as offensive
Claggy
Volunteer tester

Send message
Joined: 5 Jul 99
Posts: 4654
Credit: 47,537,079
RAC: 4
United Kingdom
Message 1740620 - Posted: 8 Nov 2015, 17:22:19 UTC - in response to Message 1740619.  

What Linux distro are you running now? Where did you get Boinc 7.6.12 from? What Boinc packages did you install?

Claggy


Linux Mint 17.2, based on Ubuntu 14.04.
Check my thread at Lunatics.


I got as far as finding the following out earlier:

http://community.linuxmint.com/software/view/boinc

Didn't tell who the package maintainers for Mint are.

Claggy
ID: 1740620 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1740621 - Posted: 8 Nov 2015, 17:22:44 UTC - in response to Message 1740581.  

Try just doing a sudo /etc/init.d/boinc-client restart

Claggy


Did that 100 times already.
purged fglrx reinstalled.

CLInfo.

Device Type: CL_DEVICE_TYPE_GPU
Vendor ID: 1002h
Board name: DID:6939 RID:F1
Device Topology: PCI[ B#1, D#0, F#0 ]
Max compute units: 28
Max work items dimensions: 3
Max work items[0]: 256
Max work items[1]: 256
Max work items[2]: 256
Max work group size: 256
Preferred vector width char: 4
Preferred vector width short: 2
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 4
Native vector width short: 2
Native vector width int: 1
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 985Mhz
Address bits: 64
Max memory allocation: 2944401408
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 64
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 16
Max size of kernel argument: 1024
Alignment (bits) of base address: 2048
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: No
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 4129292288
Constant buffer size: 65536
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 32768
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 2944401408
Max global variable size: 2649961216
Max global variable preferred total size: 4129292288
Max read/write image args: 64
Max on device events: 1024
Queue on device max size: 524288
Max on device queues: 1
Queue on device preferred size: 262144
SVM capabilities:
Coarse grain buffer: Yes
Fine grain buffer: Yes
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0
Kernel Preferred work group size multiple: 64
Error correction support: 0
Unified memory for Host and Device: 0
Profiling timer resolution: 1
Device endianess: Little
Available: Yes
Compiler available: Yes
Execution capabilities:
Execute OpenCL kernels: Yes
Execute native function: No
Queue on Host properties:
Out-of-Order: No
Profiling : Yes
Queue on Device properties:
Out-of-Order: Yes
Profiling : Yes
Platform ID: 0x7f7c6c48d8f0
Name: Tonga
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 2.0
Driver version: 1729.3 (VM)
Profile: FULL_PROFILE
Version: OpenCL 2.0 AMD-APP (1729.3)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images

Boinc tells no usable GPUs found.

Wasted 4 hours now.
Very nice.

Nothing wrong with the Linux OpenCL, the Problem is with BOINC not seeing OpenCL.
The only suggestion I can make besides having libOpenCL.so in usr/lib is to use the Berkeley BOINC 7.4.25 in your Home folder. You will have to set it up the first time by setting execute bits and checking Dependencies with ldd in the terminal, but after that it should work.
ID: 1740621 · Report as offensive
Claggy
Volunteer tester

Send message
Joined: 5 Jul 99
Posts: 4654
Credit: 47,537,079
RAC: 4
United Kingdom
Message 1740627 - Posted: 8 Nov 2015, 17:44:30 UTC - in response to Message 1740619.  
Last modified: 8 Nov 2015, 17:52:31 UTC

What Linux distro are you running now? Where did you get Boinc 7.6.12 from? What Boinc packages did you install?

Claggy


Linux Mint 17.2, based on Ubuntu 14.04.
Check my thread at Lunatics.

Have you had a read of:

Debian/Ubuntu/Mint/Derivatives - GPU recognition fixes

and this thread:

No usable GPUs found. AMD Radeon HD6750

and this thread:

Ubuntu 14.X and AMD GPU HD 7990

Claggy
ID: 1740627 · Report as offensive
Profile Fawkesguy
Volunteer tester
Avatar

Send message
Joined: 8 Jan 01
Posts: 108
Credit: 188,578,766
RAC: 0
United States
Message 1740631 - Posted: 8 Nov 2015, 18:31:14 UTC
Last modified: 8 Nov 2015, 18:32:24 UTC

Mike, why not try the sgfxi script I've suggested a few times? I have 5 Linux Mint 17.2 machines, and using the script, I have installed Nvidia drivers successfully every time. No linking of files, no issues whatsoever. OpenCL and CUDA work perfectly. I'm running BOINC 7.2.42 in my home directory. I have no experience using it with ATI cards, but it is my understanding that it works with ATI as well.


http://smxi.org/docs/sgfxi-manual.htm

X needs to be stopped prior to installation.

To install, I run (as root):
cd /usr/local/bin && wget -Nc smxi.org/sgfxi && chmod +x sgfxi && sgfxi

For upgrades, I simply run:
sgfxi
ID: 1740631 · Report as offensive
Juha
Volunteer tester

Send message
Joined: 7 Mar 04
Posts: 388
Credit: 1,857,738
RAC: 0
Finland
Message 1740654 - Posted: 8 Nov 2015, 20:36:21 UTC

<coproc_debug> please.
Where did you put the symlink to libOpenCL.so.1?
How did you install the drivers? Package manager, Driver thingy, package from AMD, something else?
If package(s), exact name(s) please.
ID: 1740654 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740664 - Posted: 8 Nov 2015, 22:08:50 UTC - in response to Message 1740654.  

<coproc_debug> please.
Where did you put the symlink to libOpenCL.so.1?
How did you install the drivers? Package manager, Driver thingy, package from AMD, something else?
If package(s), exact name(s) please.


So 08 Nov 2015 23:02:48 CET | | Starting BOINC client version 7.6.12 for x86_64-pc-linux-gnu
So 08 Nov 2015 23:02:48 CET | | log flags: file_xfer, sched_ops, task, coproc_debug
So 08 Nov 2015 23:02:48 CET | | Libraries: libcurl/7.41.0 OpenSSL/0.9.8zg zlib/1.2.7
So 08 Nov 2015 23:02:48 CET | | Data directory: /var/lib/boinc-client
So 08 Nov 2015 23:02:48 CET | | [coproc] launching child process at /usr/bin/boinc
So 08 Nov 2015 23:02:48 CET | | [coproc] relative to directory /var/lib/boinc-client
So 08 Nov 2015 23:02:48 CET | | [coproc] with data directory /var/lib/boinc-client
So 08 Nov 2015 23:02:48 CET | | No NVIDIA library found
So 08 Nov 2015 23:02:48 CET | | Caught SIGSEGV in ATI GPU detection
So 08 Nov 2015 23:02:48 CET | | No OpenCL library found
So 08 Nov 2015 23:02:48 CET | | No usable GPUs found
So 08 Nov 2015 23:02:48 CET | | Host name: Mike-FX-L
So 08 Nov 2015 23:02:48 CET | | Processor: 8 AuthenticAMD AMD FX(tm)-8350 Eight-Core Processor [Family 21 Model 2 Stepping 0]
So 08 Nov 2015 23:02:48 CET | | Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold vmmcall bmi1
So 08 Nov 2015 23:02:48 CET | | OS: Linux: 3.16.0-38-generic

Driver installed from package.
Version: 2:15.200-0ubuntu0.5

Last time i made symlink i got error wrong ELF class.
So no libOpenCL.so.1 link atm.


With each crime and every kindness we birth our future.
ID: 1740664 · Report as offensive
Juha
Volunteer tester

Send message
Joined: 7 Mar 04
Posts: 388
Credit: 1,857,738
RAC: 0
Finland
Message 1740667 - Posted: 8 Nov 2015, 22:17:31 UTC - in response to Message 1740664.  
Last modified: 8 Nov 2015, 22:19:08 UTC

Open Terminal and run the following command:

cd /usr/lib/ && sudo ln -s libOpenCL.so.1 libOpenCL.so


Then restart BOINC.

edit: I'm assuming your card is so new that it doesn't support CAL.
ID: 1740667 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740762 - Posted: 9 Nov 2015, 4:47:05 UTC - in response to Message 1740667.  

Open Terminal and run the following command:

cd /usr/lib/ && sudo ln -s libOpenCL.so.1 libOpenCL.so


Then restart BOINC.

edit: I'm assuming your card is so new that it doesn't support CAL.


Will try that again after work but IIRC i tried that already and got the message file already exists.

Yes, the card doesn`t support CAL.


With each crime and every kindness we birth our future.
ID: 1740762 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740840 - Posted: 9 Nov 2015, 14:48:29 UTC

ln: Die symbolische Verknüpfung »libOpenCL.so“ konnte nicht angelegt werden: Die Datei existiert bereits


Like expected.
File already exists.


With each crime and every kindness we birth our future.
ID: 1740840 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740846 - Posted: 9 Nov 2015, 15:02:42 UTC - in response to Message 1740840.  
Last modified: 9 Nov 2015, 15:03:24 UTC

ln: Die symbolische Verknüpfung »libOpenCL.so“ konnte nicht angelegt werden: Die Datei existiert bereits


Like expected.
File already exists.


Edit.

Adding LD_LIBRARY_PATH=/lib64:/usr/lib:/lib:/usr/local/lib to etc/default/ did the trick.

GPU is now recognised.

Thanks all for your suggestions.


With each crime and every kindness we birth our future.
ID: 1740846 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1740848 - Posted: 9 Nov 2015, 15:10:07 UTC - in response to Message 1740846.  

GPU is now recognised.

But only by the Island Name OpenCL states it's got, not by the model number it has. For that you still need a newer BOINC version.

So now it's seen as an AMD Tonga, not as an AMD Radeon R9 285/R9 380 (Tonga), which is more complete and correct.
ID: 1740848 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740850 - Posted: 9 Nov 2015, 15:20:43 UTC - in response to Message 1740848.  

GPU is now recognised.

But only by the Island Name OpenCL states it's got, not by the model number it has. For that you still need a newer BOINC version.

So now it's seen as an AMD Tonga, not as an AMD Radeon R9 285/R9 380 (Tonga), which is more complete and correct.


Well its the same as on win 7 for me.
At least i can use it now.


With each crime and every kindness we birth our future.
ID: 1740850 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1740851 - Posted: 9 Nov 2015, 15:25:10 UTC - in response to Message 1740850.  

Well its the same as on win 7 for me.

Yes, because 7.6.9 doesn't have the detection code built into the client.
7.6.15 got released for testing last night. It does have the new code.
ID: 1740851 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1740875 - Posted: 9 Nov 2015, 16:32:18 UTC - in response to Message 1740846.  

ln: Die symbolische Verknüpfung »libOpenCL.so“ konnte nicht angelegt werden: Die Datei existiert bereits

Like expected.
File already exists.

Edit.

Adding LD_LIBRARY_PATH=/lib64:/usr/lib:/lib:/usr/local/lib to etc/default/ did the trick.

GPU is now recognised.

Thanks all for your suggestions.

It sounds as though there is something wrong within your usr/lib folder. In one post you say;
Last time i made symlink i got error wrong ELF class.
So no libOpenCL.so.1 link atm.

Then when you tried to make a link and name it libOpenCL.so you got;
Like expected.
File already exists.

Extending the library path out managed to find a valid link to libOpenCL.
For many people simply having a valid libOpenCL.so link in usr/lib was enough to have BOINC see OpenCL with the repository driver. If my experience holds, if you remove the repository driver and install the proprietary driver you will probably have the same problem with BOINC not seeing OpenCL. It is possible with the new LIBRARY_PATH you can avoid that problem though.

Maybe now you can try running 2 instances of OpenCL MBv7 on that card and see if you have the same trouble as in Windows...
ID: 1740875 · Report as offensive
Profile Mike Special Project $75 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 34380
Credit: 79,922,639
RAC: 80
Germany
Message 1740898 - Posted: 9 Nov 2015, 18:18:18 UTC
Last modified: 9 Nov 2015, 18:18:37 UTC

I know, i uninstalled the drivers once more and reinstalled it that seems to have fixed that.

It seems i grabbed the non HD5 version.
Lets wait a little.

can anyone give me an example for appconfig to run 2 instances.
I will add my appinfo next weekend at earliest.


With each crime and every kindness we birth our future.
ID: 1740898 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1740918 - Posted: 9 Nov 2015, 19:42:00 UTC - in response to Message 1740898.  

This works on my Cayman;
<app_config>
   <app>
      <name>setiathome_v7</name>
      <gpu_versions>
          <gpu_usage>0.5</gpu_usage>
          <cpu_usage>.1</cpu_usage>
      </gpu_versions>
   </app>
</app_config>

I tried the cmdline from the other thread with my Cayman and it worked, but a little slower than with the one I was using. From experience I've found in Linux using the setting -oclfft_tune_wg 128 is faster than using 256. I set it for 128 and it choked. Knowing that wg 128 works I decided to start removing other settings until it worked with wg 128. Removing -oclfft_tune_lr 16 was all that was needed to get it working again. So, I'm using;
-sbs 256 -spike_fft_thresh 4096 -tune 1 64 1 4 -oclfft_tune_gr 256 -oclfft_tune_wg 128 -oclfft_tune_ls 512 -oclfft_tune_bn 64 -oclfft_tune_cw 64
on my Cayman in Ubuntu and it's running around 95% GPU load with 1 MB task. It's hard to tell, but it may be a little faster on the longer tasks than with the old settings, but not by much.
ID: 1740918 · Report as offensive
Previous · 1 · 2 · 3 · Next

Message boards : Number crunching : Updating GPU drivers in Linux.


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.