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]