Changes between Version 18 and Version 19 of GPUApp
- Timestamp:
- Jul 19, 2010, 4:46:46 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GPUApp
v18 v19 17 17 Note that NVIDIA Cuda SDK 3.0 or older supports device emulation mode. 18 18 If your machine doesn't have a CUDA-enabled GPU, 19 then you should build the sample app in the device emulation mode.19 then you should build the sample application in the device emulation mode. 20 20 Do so by setting "Build -> Configuration Manger -> Configuration" to either Emudebug or Emurelease. 21 21 … … 68 68 On my Linux machine, for example, it would be "$(ROOT)/home/tuanle/NVIDIA_GPU_Computing_SDK/". 69 69 Since the absolute path is used in Makefile, 70 you will probably need to edit file "common.mk" before compiling the sample app .70 you will probably need to edit file "common.mk" before compiling the sample application. 71 71 Do so by looking for "/home/tuanle/NVIDIA_GPU_Computing_SDK" in file "common.mk" 72 72 and replace this path with an appropriate path on your machine. … … 83 83 As far as we know, NVIDIA Cuda SDK 3.1 no longer supports emulation mode. 84 84 Thus, you will need to install an older Cuda SDK version, like version 3.0, on your machine. 85 To make an executable filein emulation mode, simply type:85 To build the sample application in emulation mode, simply type: 86 86 {{{ 87 87 make emu=1 88 88 }}} 89 89 The executable file is created in "/boinc/samples/nvcuda/linux/build_mode/" (build_mode could be release or emurelease). 90 90 Also, note that you will need to define some environment variables before running the executable file. 91 91 {{{ … … 97 97 ./example_app_nvcuda: error while loading shared libraries: libcudart.so.3: cannot open shared object file: No such file or directory 98 98 }}} 99 The executable file is created in "/boinc/samples/nvcuda/linux/build_mode/" (build_mode could be release or emurelease).100 99 101 100 === NVIDIA OpenCL === … … 112 111 On my Linux machine, for example, it would be "$(ROOT)/home/tuanle/NVIDIA_GPU_Computing_SDK/". 113 112 Since the absolute path is used in Makefile, you will probably need to edit file "common_opencl.mk" before 114 compiling the sample app . Do so by looking for "/home/tuanle/NVIDIA_GPU_Computing_SDK" in file113 compiling the sample application. Do so by looking for "/home/tuanle/NVIDIA_GPU_Computing_SDK" in file 115 114 "common_opencl.mk" and replace this path with an appropriate path on your machine. 116 115 … … 216 215 As far as we know, NVIDIA Cuda SDK 3.1 no longer supports emulation mode. 217 216 Thus, you will need to install an older Cuda SDK version, like version 3.0, on your machine. 218 To make an executable file in emulation mode, simply type:219 {{{220 make -f Makefile_mac emu=1221 }}}222 223 Also, note that you will need to define some environment variables before running the executable file.224 {{{225 export PATH=/usr/local/cuda/bin:$PATH226 export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH227 }}}228 217 229 218 The makefile for Mac is made with the assumption that the NVIDIA Cuda SDK is installed at the default location: 230 219 "$ROOT/Developer/GPU Computing/" on Mac. If it is installed at a different location on your machine, 231 220 then you will need to edit file "common_mac.mk". Do so by looking for "ROOTDIR ?= /Developer/GPU\ Computing" 232 and replace this path with an appropriate path on your machine. 233 234 The executable file is created in "/boinc/samples/nvcuda/darwin/build_mode/" (build_mode could be release or emurelease). 221 in file "common_mac.mk" and replace this path with an appropriate path on your machine. 222 223 To build the sample application in emulation mode, simply type: 224 {{{ 225 make -f Makefile_mac emu=1 226 }}} 227 The executable file is created in "/boinc/samples/nvcuda/darwin/build_mode/" (build_mode could be release or emurelease). 228 Also, note that you will need to define some environment variables before running the executable file. 229 {{{ 230 export PATH=/usr/local/cuda/bin:$PATH 231 export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH 232 }}} 235 233 236 234 === NVIDIA OpenCL === … … 243 241 "$ROOT/Developer/GPU Computing/" on Mac. If it is installed at a different location on your machine, 244 242 then you will need to edit file "common_opencl_mac.mk". Do so by looking for "ROOTDIR ?= /Developer/GPU\ Computing" 245 and replace this path with an appropriate path on your machine. 246 247 The executable is created in "/boinc/samples/nvopencl/darwin/release/". 243 in file "common_opencl_mac.mk" and replace this path with an appropriate path on your machine. 244 245 To build the sample application, simply type: 246 {{{ 247 make -f Makefile_mac 248 }}} 249 The executable is then created in "/boinc/samples/nvopencl/darwin/release/". 250 251 === ATI Stream OpenCL === 252 253 ATI Stream does not have a separate OpenCL SDK for MacOS users to download. Thus, the only way to build OpenCL 254 applications on your Mac is to have Mac OS X 10.6 version (which supports OpenCL) installed on your machine. 255 256 To build the sample application, simply type: 257 {{{ 258 make -f Makefile_mac 259 }}} 260 The executable file is then created in "/boinc/samples/atiopencl/".