Changes between Version 20 and Version 21 of GPUApp


Ignore:
Timestamp:
Jul 20, 2010, 12:17:56 PM (14 years ago)
Author:
TuanLe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GPUApp

    v20 v21  
    1818If your machine doesn't have a CUDA-enabled GPU,
    1919then you should build the sample application in the device emulation mode.
    20 Do so by setting "Build -> Configuration Manger -> Configuration" to either Emudebug or Emurelease.
     20Do so by setting "Build -> Configuration Manager -> Configuration" to either Emudebug or Emurelease.
    2121
    2222The executable file can be found at "boinc/win_build/Build/Win32/build_mode/"
     
    127127
    128128The 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,
     129SDK version 2.1 for 32-bit Linux and BOINC source code are installed in the same parent directory,
    130130i.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 SDK
     131If you are using the SDK v2.1 for 64-bit Linux, or if BOINC source code and the OpenCL SDK
    132132are not installed in the same parent directory,
    133133then Makefile needs to be edited prior to any compilation.
    134134Do so by looking for
    135135{{{
    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
     136CXXFLAGS = -g \
    142137     ...
    143138     -I ../../../ati-stream-sdk-v2.1-lnx32/include \
    144      -I ../../../ati-stream-sdk-v2.1-lnx32/samples/opencl/SDKUtil
     139     ...
     140
     141atiopencl: atiopencl.o libstdc++.a
     142     ...
     143     -lOpenCL -L../../../ati-stream-sdk-v2.1-lnx32/lib/x86 \
     144     ...
    145145}}}
    146146in file "Makefile" and replace these paths with appropriate paths on your machine.
     
    209209you will need to write external functions.
    210210The 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.
     211while the function headers with the "extern" prefix are put in .c file and can be called in main function or elsewhere.
    212212
    213213If your machine doesn't have an NVIDIA Cuda-enabled GPU,