mirror of https://github.com/BOINC/boinc.git
d866180ece | ||
---|---|---|
.. | ||
Makefile | ||
Makefile_mac | ||
common.mk | ||
common_mac.mk | ||
cuda.cpp | ||
cuda.cu | ||
cuda_config.h | ||
cuda_kernel.cu | ||
cuda_kernel_mac.cu | ||
cuda_mac.c | ||
readme.txt | ||
readme_mac.txt |
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/".