Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-11-10, 03:56 PM   #1
Archaon
Registered User
 
Join Date: Feb 2008
Posts: 2
Default Problems with OpenCL

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.
Attached Files
File Type: gz nvidia-bug-report.log.gz (37.9 KB, 114 views)
Archaon is offline   Reply With Quote
Old 02-11-10, 10:13 PM   #2
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Problems with OpenCL

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 10:14 PM. Reason: Typo
Stephen Warren is offline   Reply With Quote
Old 09-09-10, 07:02 PM   #3
tswe
Registered User
 
Join Date: Sep 2010
Posts: 6
Default Re: Problems with OpenCL

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
tswe is offline   Reply With Quote
Old 09-10-10, 06:19 AM   #4
jcornwall
Registered User
 
Join Date: Aug 2007
Location: Austin, TX
Posts: 120
Default Re: Problems with OpenCL

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.
jcornwall is offline   Reply With Quote
Old 09-14-10, 02:08 AM   #5
tswe
Registered User
 
Join Date: Sep 2010
Posts: 6
Default Re: Problems with OpenCL

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
tswe is offline   Reply With Quote
Old 09-14-10, 04:36 AM   #6
VLJ
Registered User
 
Join Date: Dec 2006
Posts: 16
Default Re: Problems with OpenCL

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
VLJ is offline   Reply With Quote
Old 09-14-10, 12:48 PM   #7
tswe
Registered User
 
Join Date: Sep 2010
Posts: 6
Default Re: Problems with OpenCL

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.
tswe is offline   Reply With Quote
Old 09-14-10, 01:12 PM   #8
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default Re: Problems with OpenCL

Did you run ldconfig to rebuild the library cache after copying the libraries?
conky is offline   Reply With Quote

Old 09-14-10, 01:21 PM   #9
tswe
Registered User
 
Join Date: Sep 2010
Posts: 6
Default Re: Problems with OpenCL

yes, I issued ldconfig after copying .so files.
tswe is offline   Reply With Quote
Old 09-15-10, 10:51 AM   #10
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: Problems with OpenCL

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)
hl_ is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Geforce Go 7950 GTX stability problems Naked NVIDIA Linux 21 03-22-09 03:25 PM
wfb-related stability problems caused by wmcpu pgimeno NVIDIA Linux 3 02-05-09 04:57 AM
Ubuntu 7.10, NVidia GeForce4 440Go, Screen Problems linuxius NVIDIA Linux 3 06-13-08 10:41 PM
Problems with Gaming on Vista? Gimlis Microsoft Windows XP And Vista 0 09-29-07 03:30 PM
Texture problems have started happening.. gaffer NVIDIA GeForce 7, 8, And 9 Series 7 04-20-04 11:38 AM

All times are GMT -5. The time now is 04:40 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.