[SOLVED] NVIDIA CUDA/OpenCL

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

[SOLVED] NVIDIA CUDA/OpenCL

Postby jmsarat » Nov 17th, '14, 12:20

CUDA/OpenCL stopped working after the latest update 340.58-1.mga5.nonfree.

NeatImage detection log :
"Looking for NVIDIA CUDA-capable devices...
Failed to initialize CUDA driver.
If you use an NVIDIA card, please install the latest video driver with CUDA support."

Darktable :
Code: Select all
[opencl_init] opencl related configuration options:
[opencl_init]
[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 768
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 0
[opencl_init] opencl_synch_cache: 0
[opencl_init] opencl_number_event_handles: 25
[opencl_init] opencl_micro_nap: 1000
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_omit_whitebalance: 0
[opencl_init]
[opencl_init] found opencl runtime library 'libOpenCL'
[opencl_init] opencl library 'libOpenCL' found on your system and loaded
[opencl_init] could not get platforms: -1001
[opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
Last edited by jmsarat on Nov 27th, '14, 15:52, edited 1 time in total.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: NVIDIA CUDA/OpenCL

Postby jmsarat » Nov 20th, '14, 15:02

Finally I removed all the NVIDIA packages and re-installed everything using the NVIDIA installer : NVIDIA-Linux-x86_64-340.58.run .
Both Darktable and NeatImage are able to use OpenCl.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: NVIDIA CUDA/OpenCL

Postby isadora » Nov 20th, '14, 17:32

Please don't forget to mark the topic [SOLVED].
You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2763
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: NVIDIA CUDA/OpenCL

Postby jmsarat » Nov 21st, '14, 13:21

Not really solved as the Mageia packages don't work at least for the OpenCL part. I'll try the latest Mageia packages to check if it's solved.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: NVIDIA CUDA/OpenCL

Postby pete910 » Nov 22nd, '14, 16:56

Did you install the nvidia-cuda-opencl package for the particular driver you was using?

There not installed by default same with AMD cards. They need to be selected !
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53

Re: NVIDIA CUDA/OpenCL

Postby jmsarat » Nov 25th, '14, 18:42

I tried again with the latest NVIDIA driver for the last kernel (3.17.3-desktop-1.mga5) and nvidia-current-cuda-opencl 340.58. NeatImage and Darktable cannot use the GPU same messages as above. The only solution for now is to remove all the Mageia NVIDIA packages and reinstall using the NVIDIA installer.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: NVIDIA CUDA/OpenCL

Postby doktor5000 » Nov 25th, '14, 20:42

Could you please show the output as root of
Code: Select all
journalctl -ab | grep -i -e cuda -e opencl
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: NVIDIA CUDA/OpenCL

Postby jmsarat » Nov 27th, '14, 15:52

NeatImage and Darktable are perfectly running using OpenCl with the latest packages

nvidia-current-cuda-opencl Version : 340.58-1.mga5.nonfree
nvidia-current-kernel-3.17.4-desktop-1.mga5 Version : 340.58-3.mga5.nonfree

Thank you.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 11th, '15, 23:47

Is OpenCL still working for you?
It (and CUDA) not work on my system; https://bugs.mageia.org/show_bug.cgi?id=14462
nvidia-current-kernel-3.18.1-desktop-4.mga5, x86_64, Version: 340.65-8.mga5
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby jmsarat » Jan 12th, '15, 16:02

I'm using nvidia-current-cuda-opencl 340.65-3.mga5 and nvidia-current-kernel-desktop 340.65-3.mga5 with kernel-3.18.1-desktop-4.mga5.
Darktable and Neatimage find OpenCL and run pefectly. I just have to create links for the cuda and opencl libs under /usr/lib64/ as Neatimage can't find the libs under /usr/lib64/nvidia-current/

Jean-Marc
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 12th, '15, 17:47

OK thanks.
That means the packages are not totally borked
Wonder whats up with my system?
I have never tried Neatimage
I tried making such links anyhow but it does not solve the problem for Blender, Darktable, or BOINC to find my GPU.

# cd /usr/lib64/
# ln -s nvidia-current/*cuda* .
# ln -s nvidia-current/*OpenCL* .
Sidenote: the files libOpenCL.so.1 and libOpenCL.so.1.0.0 already existed
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby jmsarat » Jan 12th, '15, 18:26

I had once this kind of problem and it was caused by multiple versions installed on my system, cleaning everything and reinstalling solved the problem.
You could try to remove all the cuda and nvidia packages (and the links you just created) and then install cuda and the kernel module using the original NVIDIA display driver. It worked for me months ago.
What do you get when starting darktable in a terminal with # darktable -d opencl ?

Jean-Marc
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: NVIDIA CUDA/OpenCL

Postby doktor5000 » Jan 12th, '15, 20:10

Apart from that, you never replied to
doktor5000 wrote:Could you please show the output as root of
Code: Select all
journalctl -ab | grep -i -e cuda -e opencl
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 12th, '15, 21:26

I already tried removing everything nvidia, cuda, opecl, while running noveau, then rebooted, reinstalled, rebooted.

Code: Select all
$ sudo journalctl -ab | grep -i -e cuda -e opencl
jan 11 22:08:33 svarten drakrpm[23048]: running: rpm -ql nvidia-current-cuda-opencl-340.65-3.mga5.nonfree.x86_64
jan 11 22:08:33 svarten drakrpm[23048]: running: rpm -q --qf '%{description}' nvidia-current-cuda-opencl-340.65-3.mga5.nonfree.x86_64
jan 11 22:08:33 svarten drakrpm[23048]: running: rpm -q --changelog nvidia-current-cuda-opencl-340.65-3.mga5.nonfree.x86_64


More info in my bug 14462 i linked above.

Now i also tried on another mga5 64bit system but which have AMD; HD 6850 Graphics, and i can not make that work either.
(it runs proprietary driver and I installed fglrx-opencl, rebooted.)

It feels like i am doing something wrong...
Maybe I should do something else than just installing respective opencl libs?
Do i have to enable GPU access somehow?
Is there some tests/diagnosis i can run?
Last edited by morgano on Jan 12th, '15, 21:36, edited 2 times in total.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 12th, '15, 21:28

In the nvidia [GeForce GTX 760] mga5 system
Code: Select all
$ darktable -d opencl
[opencl_init] opencl related configuration options:
[opencl_init]
[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 768
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 0
[opencl_init] opencl_synch_cache: 0
[opencl_init] opencl_number_event_handles: 25
[opencl_init] opencl_micro_nap: 1000
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_omit_whitebalance: 0
[opencl_init]
[opencl_init] could not find opencl runtime library 'libOpenCL'
[opencl_init] could not find opencl runtime library 'libOpenCL.so'
[opencl_init] found opencl runtime library 'libOpenCL.so.1'
[opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
[opencl_init] could not get platforms: -1001
[opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
[opencl_init] initial status of opencl enabled flag is OFF.


Last edited by isadora on Jan 12th, '15, 21:29, edited 1 time in total.
Reason: Command-output placed between [CODE]-tags, for better readability. ;)


OK thanks Isadora, I just feel that those clumsy blocks screem at me - but i should comply with local standards ;)
Last edited by isadora on Jan 12th, '15, 21:29, edited 1 time in total.
Reason: Command-output placed between [CODE]-tags, for better readability. ;)
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 12th, '15, 22:06

Continuing using darktable to find problems
Searching the web on opencl and "could not get platforms: -1001", give http://askubuntu.com/questions/541114/h ... 89-drivers
where the answer tell about recent nvidia drivers need special modprobe rules, and go on making solution for debian/ubuntu (see links)
So maybe this is needed for some nvidia cards but not (or different need) for other cards...
I wonder how the status of this is on mageia
...
I found in one of the links:
This -1001 issue is usually because the vendor OpenCL library is not
found. But this is not the problem here as under strace I have seen
that the proper vendor library is searched and loaded. The relevant
lines are:

6633 open("/etc/OpenCL/vendors/nvidia.icd", O_RDONLY) = 5
...
6633 open("/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.331.67",
O_RDONLY|O_CLOEXEC) = 6
I get this:
Code: Select all
open("/etc/OpenCL/vendors/nvidia.icd", O_RDONLY) = 8
fstat(8, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcf1301b000
fstat(8, {st_mode=S_IFREG|0644, st_size=22, ...}) = 0
lseek(8, 0, SEEK_SET)                   = 0
read(8, "libnvidia-opencl.so.1\n", 22)  = 22
lseek(8, 22, SEEK_SET)                  = 22
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=171529, ...}) = 0
mmap(NULL, 171529, PROT_READ, MAP_PRIVATE, 9, 0) = 0x7fcf12ff1000
close(9)                                = 0
open("/usr/lib64/nvidia-current/libnvidia-opencl.so.1", O_RDONLY|O_CLOEXEC) = 9
read(9, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\"\21\0\0\0\0\0"..., 832) = 832
fstat(9, {st_mode=S_IFREG|0755, st_size=14127056, ...}) = 0
...(some mmap lines etc here)
close(9)                                = 0

I guess that mean it find the relevant libraries OK.

Maybe I should try this somehow...?
http://sourceforge.net/p/darktable/mail ... /32285148/
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby isadora » Jan 12th, '15, 22:43

morgano wrote:...
OK thanks Isadora, I just feel that those clumsy blocks screem at me - but i should comply with local standards ;)

No problem, i am very patient anyway. :D
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2763
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby jmsarat » Jan 27th, '15, 20:54

OpenCL stopped working with the latest NVIDIA update (346.35). I had the error : ERROR: could not insert 'nvidia_uvm': Invalid argument

I found this: https://bugs.debian.org/cgi-bin/bugrepo ... bug=746643.
I tried this :
# modprobe --force-modversion nvidia-uvm
now darktable and NeatImage work with OpenCL.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby doktor5000 » Jan 28th, '15, 00:05

Loading nvidia_uvm works fine here with latest updates, that is without --force-modversion
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18032
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby bertaerts » Feb 19th, '15, 23:09

I created a bugreport:
https://bugs.mageia.org/show_bug.cgi?id=15328

In short, when I create the nVIDIA rpm's myself, everything with CUDA and OpenCL works fine!
Details: see bugreport.
bertaerts
 
Posts: 181
Joined: Apr 6th, '11, 12:19

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Feb 24th, '15, 11:47

Thanks for the investigation. Hope we will get working official packages.

UPDATE: I followed your instruction in the bug and now I too have CUDA and OpenCL, thank you :)

UPDATE2: it is a good idea to then put the line
Code: Select all
/nvidia-current/
in /etc/urpmi/skip.list so the locally built files do not get replaced by updates...
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jun 6th, '15, 15:16

This seems to be resolved for mageia 5 release; latest mageia packages works for me :)
https://bugs.mageia.org/show_bug.cgi?id=15328#c3
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 15th, '16, 14:43

Does it still work for you using latest mageia packages?
It seem to have broken for me (all BOINC GPUGRID workunits fails)
https://bugs.mageia.org/show_bug.cgi?id=15328#c4
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby morgano » Jan 15th, '16, 15:53

CUDA got solved for me by installing nvidia-cuda-toolkit that this system for some reason did not have anymore.
However i still do not have OpenCL anymore like i did before
More info see https://bugs.mageia.org/show_bug.cgi?id=15328#c7
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1481
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] NVIDIA CUDA/OpenCL

Postby jmsarat » Jan 16th, '16, 13:56

With the latest version : 346.96-1.mga5.nonfree NeatImage and darktable work perfectly. I had to create links from /usr/lib64/nvidia-current/ to /usr/lib64/ for libOpenCL.so.1.0.0, libOpenCL.so.1.0, libOpenCL.so.1, libOpenCL.so and libcuda.so.1, libcuda.so for NeatImage to find the GPU.
jmsarat
 
Posts: 20
Joined: Feb 3rd, '12, 14:46

Next

Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest