CUDA w.o. X

Could anybody enlighten me, how can I run CUDA apps without runing the X window system?

I tried the following:

modprobe nvidia
mknod -m 660 /dev/nvidia0 c 195 0
mknod -m 660 /dev/nvidiactl c 195 255

But it didn’t help. I’m still getting cudaErrorApiFailureBase on every API call.

BTW, I am on Fedora 12, 64 bit, using cuda 2.3

Thx.

I

I tested some of the cuda SDK examples without X and they work fine. You shouldn’t need to mknod the nvidia device files, the default driver should make them. Maybe change the permissions to a+rw. Otherwise check the syslog, dmesg. I am also running cuda 3.0

crw-rw-rw- 1 root root 195, 255 2010-04-11 16:46 /dev/nvidiactl
crw-rw-rw- 1 root root 195, 0 2010-04-11 16:46 /dev/nvidia0

edit: the X window system on init creates the files. above are what mine look like. Also did you install both the cuda driver and cuda runtime.

Should have been

mknod -m 666 /dev/nvidia0 c 195 0
mknod -m 666 /dev/nvidiactl c 195 255

:wacko: