can i use cuda without cuda-enable video card can't make correctly in emulation mode

My system is ubuntu 8.04
The cuda toolkit is 2.1

I am try to use the cuda on my laptop which don’t have a cuda-enable video card. I only want to use emulation mode.

Because my video card is not NVIDIA, so I can’t install the cuda driver.

After I install the toolkit and SDK, I try to make(make emu=1) it on the folder of NVIDIA_CUDA_SDK, failed.

I try to make(make emu=1) in the subfolder(NVIDIA_CUDA_SDK/projects/scan/), it can make successful. but can’t run the program.

Could you please give me a piece of suggestions.

Can I run cuda without install the driver?

thanks for any reply!

Cheers,

Peter,

try to compile the SDK with
“make emu=1”

compile example projects also with
“make emu=1”

Thanks for you attention.

I do use make emu=1.

Could you post the error message when you run the program?

Thank you again!!

first of all, I am a beginner of linux. When I make the SDK, it has some errors.

[codebox]shong@shong-desktop:~/NVIDIA_CUDA_SDK$ sudo make emu=1

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/common’

a - obj/release/bank_checker.cpp.o

a - obj/release/cmd_arg_reader.cpp.o

a - obj/release/cutil.cpp.o

a - obj/release/stopwatch.cpp.o

a - obj/release/stopwatch_linux.cpp.o

a - obj/release/multithreading.cpp.o

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/common’

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/common’

a - obj/release/paramgl.cpp.o

a - obj/release/param.cpp.o

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/common’

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/common’

a - obj/release/rendercheck_gl.cpp.o

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/common’

make -C projects/bitonic/

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/projects/bitonic’

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/projects/bitonic’

make -C projects/quasirandomGenerator/

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/projects/quasirandomGenerator’

In file included from quasirandomGenerator.cpp:43:

…/…/common/inc/cutil_inline.h:211: warning: unused parameter ‘ARGC’

…/…/common/inc/cutil_inline.h:211: warning: unused parameter ‘ARGV’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘cuDevice’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘ARGC’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘ARGV’

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/projects/quasirandomGenerator’

make -C projects/binomialOptions/

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/projects/binomialOptions’

In file included from binomialOptions.cpp:49:

…/…/common/inc/cutil_inline.h:211: warning: unused parameter ‘ARGC’

…/…/common/inc/cutil_inline.h:211: warning: unused parameter ‘ARGV’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘cuDevice’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘ARGC’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘ARGV’

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/projects/binomialOptions’

make -C projects/simpleGL/

make[1]: Entering directory `/home/shong/NVIDIA_CUDA_SDK/projects/simpleGL’

In file included from simpleGL.cpp:74:

…/…/common/inc/cutil_inline.h:211: warning: unused parameter ‘ARGC’

…/…/common/inc/cutil_inline.h:211: warning: unused parameter ‘ARGV’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘cuDevice’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘ARGC’

…/…/common/inc/cutil_inline.h:212: warning: unused parameter ‘ARGV’

/usr/bin/ld: cannot find -lXi

collect2: ld returned 1 exit status

make[1]: *** […/…/bin/linux/emurelease/simpleGL] Error 1

make[1]: Leaving directory `/home/shong/NVIDIA_CUDA_SDK/projects/simpleGL’

make: *** [projects/simpleGL/Makefile.ph_build] Error 2

[/codebox]

When I run the program which compiled correctly.

[codebox]shong@shong-desktop:~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ sudo ./bitonic

./bitonic: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory

[/codebox]

When I add the /usr/local/cuda/lib to /etc/ld.so.conf and run ldconfig

these errors still exist.

By the way, when I only type ./bitonic, other errors occur. Oh my god.

[codebox]shong@shong-desktop:~/NVIDIA_CUDA_SDK/bin/linux/emurelease$ ./bitonic

Error: API mismatch: the NVIDIA kernel module has version 96.43.05,

but this NVIDIA driver component has version 180.22. Please make

sure that the kernel module and all NVIDIA driver components

have the same version.

cutilCheckMsg() CUTIL CUDA error: Kernel execution failed in file <bitonic.cu>, line 79 : initialization error.

[/codebox]

Try to solve the first problem by installing libXi and libXi-devel packages.
After that, you should find /usr/lib/libXi.so and /usr/lib/libXi.so.6.

This looks like a known Ubuntu ‘feature’ where it reinstalls its own (96.43.05) driver after every reboot. This ‘feature’ has been discussed, with a solution, elsewhere on this forum.

Thanks!

I installed the libXi.

[codebox]

sudo apt-get update

sudo apt-get install libXi-dev

[/codebox]

The errors still exist.

Thanks you all reply!

I think I should know more about linux.

Thanks.

peter