|
|
#1 | |
|
Registered User
Join Date: Feb 2008
Posts: 2
|
Hello,
i want to test OpenCL on my Notebook with an NVIDIA 8600M GT GPU. I installed the NVIDIA Toolkit and SDK 3.0_beta1. All compiled fine but when I try to run the OpenCL samples I get an error the CUDA samples run without errors. The Driver versions I tried were 195.36.03 and 190.53. The Error: Code:
/opt/cuda/sdk/OpenCL/bin/linux/release/oclDeviceQueryoclDeviceQuery.exe Starting... OpenCL SW Info: Error -1001 in clGetPlatformIDs Call !!! Segmentation fault Bug report is attached. |
|
|
|
|
|
|
#2 | |
|
Moderator
Join Date: Aug 2005
Posts: 1,327
|
You'll probably find more people familiar with CUDA and OpenCL issues at http://forums.nvidia.com/
Last edited by Stephen Warren; 02-11-10 at 09:14 PM. Reason: Typo |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Sep 2010
Posts: 6
|
same problem here.
I am on opensuse 11.1 and use the prepackaged drivers from ftp://download.nvidia.com/opensuse and the package is missing some files, like lobOpenCL.so, which I extracted from the .run file and put manually in the /usr/lib64 directory together with creating some symlinks (see the .manifest file in the extracted .run nvidia driver). I can compile my opencl programs fine (http://pastebin.com/3BF2vDzc, http://www.thebigblob.com/getting-st...gpu-computing/), but when I run, the first opencl-related function clGetPlatformIDs returns an error code (-1001). Again, I try to figure out what the prepackaged driver is missing since I suspect the error there (but open to other suggestions, too). If I would use the nvidia .run script driver, the problem probably does not exist. CUDA executables run fine (compiled on an other opensuse machine without nvidia card) If anyone has hints, I would appreciate it, and I would love to see the prepackaged driver work very well, due to it's ease of use for probably many newcomers to opensuse. opensuse 11.1 64bit, nvidia quadrofx3700 driver version 256.53 |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Aug 2007
Location: Austin, TX
Posts: 120
|
To support multiple OpenCL implementations on a single system, Khronos introduced an ICD architecture into /etc/OpenCL/vendors. e.g.
[jay@deimos ~]$ cat /etc/OpenCL/vendors/nvidia.icd libcuda.so You probably just need to package that. |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Sep 2010
Posts: 6
|
the nvidia.icd file with only contents "libcuda.so" has always been at that location (/etc/OpenCL/vendors)
what else do I need? the packager did not create a complete package so that it creates an installation equivalent to the NVIDIA-Linux-x86_64-256.53.run |
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Dec 2006
Posts: 16
|
libOpenCL.so is shipped with Nvidia drivers on their website, not with the GPU computing toolkit/sdk.
This is the right way to do : people wanting to use your application won't have to download some developpement package, as the driver provide this library. Please note that I mentionned the Nvidia drivers on their website, not the nvidia driver available in Nvidia repository for Opensuse. The packaged drivers for Opensuse strangely lacks libOpenCL.so (but ships libcuda.so ), so the solution is to extract libOpenCL.so from nvidia installer : sh NVIDIA-*.run -x && OCLLIB=`find . -iname 'libOpenCL.so*'` && sudo cp $OCLLIB /usr/lib64 |
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Sep 2010
Posts: 6
|
I did extract the libOpenCL.so from the NVIDIA-Linux-xxxxxx.run file and placed in /usr/lib64, as well as created symlinks, as well as placing the icd file. In fact, I took my notebook w/ nvidia chip, and installed opensuse 11.1 fresh, and installed the driver from the NVIDIA-Linux-xxxxx.run file, just to compare to my driver installation from opensuse package on my work PC, and extract additional missing files.
Still, I have the same problem (which is that when clGetPlatformIDs is called [the first cl-related function in my program] I get (-1001). What else is missing? I can't identify it. |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Nov 2007
Posts: 70
|
Did you run ldconfig to rebuild the library cache after copying the libraries?
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Sep 2010
Posts: 6
|
yes, I issued ldconfig after copying .so files.
|
|
|
|
|
|
#10 |
|
Registered User
Join Date: Feb 2009
Posts: 138
|
For OpenCL to work on NVidia hardware, as far as I know you need
a) libOpenCL b) nvidia.icd file in /etc/OpenCL/vendors c) libcuda d) libnvidia-compiler (that's the OpenCL compiler) |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Geforce Go 7950 GTX stability problems | Naked | NVIDIA Linux | 21 | 03-22-09 02:25 PM |
| wfb-related stability problems caused by wmcpu | pgimeno | NVIDIA Linux | 3 | 02-05-09 03:57 AM |
| Ubuntu 7.10, NVidia GeForce4 440Go, Screen Problems | linuxius | NVIDIA Linux | 3 | 06-13-08 09:41 PM |
| Problems with Gaming on Vista? | Gimlis | Microsoft Windows XP And Vista | 0 | 09-29-07 02:30 PM |
| Texture problems have started happening.. | gaffer | NVIDIA GeForce 7, 8, And 9 Series | 7 | 04-20-04 10:38 AM |