You are not logged in.

#1 2011-07-27 13:05:40

yl3dy
Member
Registered: 2011-07-27
Posts: 19

[solved] [OpenCL] can't get it see nVidia card

I'm having a laptop with hybrid video (nVidia GT 540M + Intel). At the very beginning of July I have installed bumblebee (that is, among others, dkms-nvidia and nvidia-utils-bumblebee from AUR) and cuda metapackage. At first, everything was nice - all examples from cuda-sdk ran fine.

Now I tried to compile my own OpenCL app, but got an -1001 error in clGetPlatformID, so was with the examples. I thought that it was a version issue, and downgraded dkms-nvidia and nvidia-utils-bumblebee to previous versions, i.e. from 275.21 nVidia drivers to 275.09.07. Unfortunately, I hadn't saved original packages, so just aligned current PKGBUILDs. But the error remained! And CUDA examples also failed with error "No CUDA-capable devices found". And surely ran ldconfig after downgrade.

I also tried to install libcl and opencl-nvidia from [extra], but it didn't help. I checked manually presence of libOpenCL.so, libcuda.so, /etc/OpenCL/vendors/nvidia.icd, plus OpenCL/CUDA programs are built fine. Google says that it can be an issue with absent above-mentioned files, or old drivers.

Does anyone have any idea, how it can be fixed?

P.S. nvidia-utils-bumblebee is almost the same as nvidia-utils, just puts libs to /usr/lib/nvidia-bumblebee/ instead of /usr/lib. This is done so to avoid conflicts with xf86-video-intel files.

Last edited by yl3dy (2011-07-28 12:33:56)

Offline

#2 2011-07-27 17:21:27

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: [solved] [OpenCL] can't get it see nVidia card

I have a laptop with a dual (nvidia + intel) GPU and the only solution I could find to my issues were to disable the intel chip. I'm sure someone else will be able to give you more help though.

Offline

#3 2011-07-27 18:00:47

yl3dy
Member
Registered: 2011-07-27
Posts: 19

Re: [solved] [OpenCL] can't get it see nVidia card

@llawwehttam: Well, it might be the last resort, especially since one time I managed to get it work. Anyway, thanks for info that video can work with disabled Intel.

Also I found that bumblebee (used to run GL applications on the discrete videocard) also fails to work. Starting bumblebee succeedes only at second try, also "optirun glxgears" fails with "[VGL] ERROR: Could not open display :1." as if the nVidia is turned off.

I'll try to clean and install drivers over again. Maybe there was a fail to install Intel OpenCL SDK. Stay tuned smile

Offline

#4 2011-07-28 12:33:40

yl3dy
Member
Registered: 2011-07-27
Posts: 19

Re: [solved] [OpenCL] can't get it see nVidia card

Well, I managed to resolve the issue. After reinstalling bumblebee, including dkms, dkms-nvidia driver, I got videocard working. Now I can run 3D apps on nvidia, also OpenCL with opencl-headers, libcl and opencl-nvidia works.

Looks like the root of this problem was in dkms - after first tests kernel was upgraded, but I haven't rebuilt dkms itself (only dkms-nvidia).

Marking as solved.

Offline

Board footer

Powered by FluxBB