boinc/samples/nvcuda
Tuan Le d866180ece svn path=/trunk/boinc/; revision=21885 2010-07-08 23:50:24 +00:00
..
Makefile cuda.cu -> fix boinc_msg_prefix() 2010-06-23 23:20:25 +00:00
Makefile_mac Makefile_mac completed 2010-07-01 17:53:11 +00:00
common.mk svn path=/trunk/boinc/; revision=21819 2010-06-25 21:09:33 +00:00
common_mac.mk Makefile_mac completed 2010-07-01 17:53:11 +00:00
cuda.cpp svn path=/trunk/boinc/; revision=21885 2010-07-08 23:50:24 +00:00
cuda.cu svn path=/trunk/boinc/; revision=21819 2010-06-25 21:09:33 +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
cuda_kernel_mac.cu Makefile_mac completed 2010-07-01 17:53:11 +00:00
cuda_mac.c Makefile_mac completed 2010-07-01 17:53:11 +00:00
readme.txt svn path=/trunk/boinc/; revision=21866 2010-07-01 23:33:15 +00:00
readme_mac.txt svn path=/trunk/boinc/; revision=21866 2010-07-01 23:33:15 +00:00

readme.txt

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

----------------------- Compiler ----------------------------

You will need to install gcc 4.3 and g++ 4.3. It appears that Cuda 3.0 SDK has not yet worked
with gcc 4.4 and g++ 4.4. Please follow these steps:

sudo aptitude install gcc-4.3 g++-4.3
cd ~/NVIDIA_GPU_Computing_SDK/C (go to SDK source dir. You should find the right path on your machine)
mkdir mygcc
cd mygcc
ln -s $(which g++-4.3) g++
ln -s $(which gcc-4.3) gcc

Note: mygcc directory must be created since I have made symlinks to the 4.3 compiler to mygcc directory
in my current Makefile.

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

common.mk file 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:

ROOTDIR  ?= /home/tuanle/NVIDIA_GPU_Computing_SDK

3) Replace this path with an appropriate path 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/".