Changes between Version 11 and Version 12 of GPUApp
- Timestamp:
- Jul 8, 2010, 3:02:55 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GPUApp
v11 v12 16 16 The VS project file, example_app_nvcuda.vcproj, is in "boinc/win_build/". 17 17 Note that NVIDIA Cuda SDK 3.0 or older supports device emulation mode. 18 If your machine doesn't have a C uda-enabled GPU,18 If your machine doesn't have a CUDA-enabled GPU, 19 19 then you should build the sample app in the device emulation mode. 20 Do so by setting "Build -> Configuration Manger -> Configuration" to either Emudebug |Emurelease.20 Do so by setting "Build -> Configuration Manger -> Configuration" to either Emudebug or Emurelease. 21 21 It comes to our attention that while compiling the sample app, 22 22 the linker tries to link both the debug and release libraries, and thus causing the following errors: … … 27 27 ... 28 28 }}} 29 One solution to this problem is to set the Hy prid Cuda/C++ Runtime Library to "Multi-Threaded Debug (/MTd)".29 One solution to this problem is to set the Hybrid Cuda/C++ Runtime Library to "Multi-Threaded Debug (/MTd)". 30 30 Do so by right click on the project. 31 31 Set "Properties -> Configuration Properties -> Cuda Build Rule v3.0.14 -> Hybrid CUDA/C++ Options -> Runtime Library" … … 81 81 is installed at the default location "$(ROOT)/home/USER_NAME/NVIDIA_GPU_Computing_SDK/". 82 82 On my Linux machine, for example, it would be "$(ROOT)/home/tuanle/NVIDIA_GPU_Computing_SDK/". 83 Since the absolute path is used in Makefile, you will probably need to edit file "common.mk" before compiling the sample app. 83 Since the absolute path is used in Makefile, 84 you will probably need to edit file "common.mk" before compiling the sample app. 84 85 Do so by looking for "/home/tuanle/NVIDIA_GPU_Computing_SDK" in file "common.mk" 85 86 and replace this path with an appropriate path on your machine. 86 87 87 What if your machine doesn't have an NVIDIA Cuda-enabled GPU? 88 Then,you can compile and run your app in emulation mode.88 If your machine doesn't have an NVIDIA Cuda-enabled GPU, 89 you can compile and run your app in emulation mode. 89 90 As far as we know, NVIDIA Cuda SDK 3.1 no longer supports emulation mode. 90 91 Thus, you will need to install an older Cuda SDK version, like version 3.0, on your machine. … … 116 117 117 118 The Makefile for Linux is made with the assumption that the ATI Stream OpenCL 118 SDK version 2.1 for 32-bit Linux and B oincare installed in the same parent directory,119 SDK version 2.1 for 32-bit Linux and BOINC are installed in the same parent directory, 119 120 i.e. "ati-stream-sdk-v.2.1-lnx32" directory and "boinc" directory are both installed at "$(ROOT)/home/" directory. 120 If you are using the SDK v2.1 for 64-bit Linux, or if B oincand the OpenCL SDK121 If you are using the SDK v2.1 for 64-bit Linux, or if BOINC and the OpenCL SDK 121 122 are not installed in the same parent directory, 122 123 then Makefile needs to be edited prior to any compilation. … … 180 181 === NVIDIA Cuda === 181 182 182 Unlike Windows and Linux, the 'nvcc' cuda compiler for Mac has some trouble compiling .cu files that183 contain both BOINC and Cuda codes.183 Unlike Windows and Linux, the 'nvcc' cuda compiler for Mac 184 has some trouble compiling .cu files that contain both BOINC and Cuda code. 184 185 Any attempt to compile such .cu files might result in errors like 185 186 these: … … 200 201 while the function headers with "extern" prefix are put in .c file and can be called in main function or elsewhere. 201 202 202 What if your machine doesn't have an NVIDIA Cuda-enabled GPU? Then, you can compile and run your app in emulation mode. 203 If your machine doesn't have an NVIDIA Cuda-enabled GPU, 204 you can compile and run your app in emulation mode. 203 205 As far as we know, NVIDIA Cuda SDK 3.1 no longer supports emulation mode. 204 206 Thus, you will need to install an older Cuda SDK version, like version 3.0, on your machine.