NVIDIA: could not open the device file /dev/nvidia0 (Input/output error). Error while running CUDA S

Hi everyone,

I am getting this error while running the example codes from the CUDA SDK.

[codebox]

./oclBandwidthTest

./oclBandwidthTest Starting…

NVIDIA: could not open the device file /dev/nvidia0 (Input/output error).

Error -1001 in clGetPlatformIDs Call !!!

!!! Error # -1000 (Unspecified Error) at line 173 , in file oclBandwidthTest.cpp !!!

Exiting…


[/codebox]

There is no such error in the Xorg log file since the Nvidia card works well.

And also the files nvidia0 and nvidia1 are presente in the /dev/ folder:

[codebox]

ls -l /dev/nvidia*

crw-rw-rw- 1 root root 195, 0 17 lug 21.28 /dev/nvidia0

crw-rw-rw- 1 root root 195, 1 17 lug 21.28 /dev/nvidia1

crw-rw-rw- 1 root root 195, 255 17 lug 21.28 /dev/nvidiactl

[/codebox]

I am currently running a Dell XPS 13 with GeForce 9400M.

My driver version is 256.40 and I use Archlinux 64 bit.

I have already search for this error in the forum and on the web but I found no solution. I cannot understand the cause of the error.

Any ideas ?

Thank you in advance!

With your permission settings it will not work unless your are root. You should make user root, group video (.e.g, done by OpenSuSE) the owner of those devices and then make yourself a member of group video.

Hmm, I tried also running the test as root, it does not work.
Same issue.
It is not a permission problem.