Changes between Version 20 and Version 21 of GPUApp
- Timestamp:
- Jul 20, 2010, 12:17:56 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GPUApp
v20 v21 18 18 If your machine doesn't have a CUDA-enabled GPU, 19 19 then you should build the sample application in the device emulation mode. 20 Do so by setting "Build -> Configuration Man ger -> Configuration" to either Emudebug or Emurelease.20 Do so by setting "Build -> Configuration Manager -> Configuration" to either Emudebug or Emurelease. 21 21 22 22 The executable file can be found at "boinc/win_build/Build/Win32/build_mode/" … … 127 127 128 128 The Makefile for Linux is made with the assumption that the ATI Stream OpenCL 129 SDK version 2.1 for 32-bit Linux and BOINC are installed in the same parent directory,129 SDK version 2.1 for 32-bit Linux and BOINC source code are installed in the same parent directory, 130 130 i.e. "ati-stream-sdk-v.2.1-lnx32" directory and "boinc" directory are both installed at "$(ROOT)/home/" directory. 131 If you are using the SDK v2.1 for 64-bit Linux, or if BOINC and the OpenCL SDK131 If you are using the SDK v2.1 for 64-bit Linux, or if BOINC source code and the OpenCL SDK 132 132 are not installed in the same parent directory, 133 133 then Makefile needs to be edited prior to any compilation. 134 134 Do so by looking for 135 135 {{{ 136 CXXFLAGS2 = -g \ 137 ... 138 -L ../../../ati-stream-sdk-v2.1-lnx32/lib/x86 \ 139 -L ../../../ati-stream-sdk-v2.1-lnx32/TempSDKUtil/lib/x86 \ 140 141 atiopencl.o: atiopencl.cpp atiopencl.hpp 136 CXXFLAGS = -g \ 142 137 ... 143 138 -I ../../../ati-stream-sdk-v2.1-lnx32/include \ 144 -I ../../../ati-stream-sdk-v2.1-lnx32/samples/opencl/SDKUtil 139 ... 140 141 atiopencl: atiopencl.o libstdc++.a 142 ... 143 -lOpenCL -L../../../ati-stream-sdk-v2.1-lnx32/lib/x86 \ 144 ... 145 145 }}} 146 146 in file "Makefile" and replace these paths with appropriate paths on your machine. … … 209 209 you will need to write external functions. 210 210 The function definitions that make kernel calls will be put in .cu file 211 while the function headers with "extern" prefix are put in .c file and can be called in main function or elsewhere.211 while the function headers with the "extern" prefix are put in .c file and can be called in main function or elsewhere. 212 212 213 213 If your machine doesn't have an NVIDIA Cuda-enabled GPU,