boinc/samples/nvcuda
Tuan Le ea59d1b326 cuda.cu -> fix boinc_msg_prefix()
common.mk, Makefile for Linux
readme.txt for troubleshooting 

svn path=/trunk/boinc/; revision=21798
2010-06-23 23:20:25 +00:00
..
Makefile cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00
common.mk cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00
cuda.cu cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00
cuda_config.h cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00
cuda_kernel.cu cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00
readme.txt cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00

readme.txt

Tuan Le
University of California, Berkeley
Berkeley Space Sciences Lab
tuanle86@berkeley.edu


----------------------- Linux Makefile ----------------------

Makefile needs to be edited on your machine before running. Please follow these steps:

1) Open "boinc/samples/nvcuda/common.mk" with gedit
2) Ctrl+f and search for "tuanle". You will find the following:

LIBDIR     := /home/tuanle/NVIDIA_GPU_Computing_SDK/C/lib

COMMONDIR  := /home/tuanle/NVIDIA_GPU_Computing_SDK/C/common

SHAREDDIR  := /home/tuanle/NVIDIA_GPU_Computing_SDK/shared
...
...
NVCUVIDLIB := -L/home/tuanle/NVIDIA_GPU_Computing_SDK/C/common/lib/darwin -lnvcuvid

3) Replace these above paths by appropriate paths on your machine.
4) Done!


----------------------- Linux Troubleshooting ----------------

Error: ./example_app_nvcuda: error while loading shared libraries: libcudart.so.3: cannot open
       shared object file: No such file or directory
Read: http://developer.download.nvidia.com/compute/cuda/3_0/docs/GettingStartedLinux.pdf  (on top of page 6)
Solution: export PATH=/usr/local/cuda/bin:$PATH
          export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH


----------------------- Run Executable file ------------------

"make" command will create an executable file in "boinc/samples/nvcuda/linux/release/".
If your machine doesn't have CUDA-enabled GPU, then the executable file for this sample app in 
the release directory will stop execution after the statement "Start at inversion #1" is printed out on
the terminal. In this case, it's best to run in emurelease mode. To generate an executable file in
emurelease mode, type "make emu=1". The executable file is then created in "boinc/samples/nvcuda/linux/emurelease/".