Changes between Version 11 and Version 12 of GPUApp


Ignore:
Timestamp:
Jul 8, 2010, 3:02:55 PM (14 years ago)
Author:
Nicolas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GPUApp

    v11 v12  
    1616The VS project file, example_app_nvcuda.vcproj, is in "boinc/win_build/".
    1717Note that NVIDIA Cuda SDK 3.0 or older supports device emulation mode.
    18 If your machine doesn't have a Cuda-enabled GPU,
     18If your machine doesn't have a CUDA-enabled GPU,
    1919then you should build the sample app in the device emulation mode.
    20 Do so by setting "Build -> Configuration Manger -> Configuration" to either Emudebug|Emurelease.
     20Do so by setting "Build -> Configuration Manger -> Configuration" to either Emudebug or Emurelease.
    2121It comes to our attention that while compiling the sample app,
    2222the linker tries to link both the debug and release libraries, and thus causing the following errors:
     
    2727...
    2828}}}
    29 One solution to this problem is to set the Hyprid Cuda/C++ Runtime Library to "Multi-Threaded Debug (/MTd)".
     29One solution to this problem is to set the Hybrid Cuda/C++ Runtime Library to "Multi-Threaded Debug (/MTd)".
    3030Do so by right click on the project.
    3131Set "Properties -> Configuration Properties -> Cuda Build Rule v3.0.14 -> Hybrid CUDA/C++ Options -> Runtime Library"
     
    8181is installed at the default location "$(ROOT)/home/USER_NAME/NVIDIA_GPU_Computing_SDK/".
    8282On 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.
     83Since the absolute path is used in Makefile,
     84you will probably need to edit file "common.mk" before compiling the sample app.
    8485Do so by looking for "/home/tuanle/NVIDIA_GPU_Computing_SDK" in file "common.mk"
    8586and replace this path with an appropriate path on your machine.
    8687
    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.
     88If your machine doesn't have an NVIDIA Cuda-enabled GPU,
     89you can compile and run your app in emulation mode.
    8990As far as we know, NVIDIA Cuda SDK 3.1 no longer supports emulation mode.
    9091Thus, you will need to install an older Cuda SDK version, like version 3.0, on your machine.
     
    116117
    117118The Makefile for Linux is made with the assumption that the ATI Stream OpenCL
    118 SDK version 2.1 for 32-bit Linux and Boinc are installed in the same parent directory,
     119SDK version 2.1 for 32-bit Linux and BOINC are installed in the same parent directory,
    119120i.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 Boinc and the OpenCL SDK
     121If you are using the SDK v2.1 for 64-bit Linux, or if BOINC and the OpenCL SDK
    121122are not installed in the same parent directory,
    122123then Makefile needs to be edited prior to any compilation.
     
    180181=== NVIDIA Cuda ===
    181182
    182 Unlike Windows and Linux, the 'nvcc' cuda compiler for Mac has some trouble compiling .cu files that
    183 contain both BOINC and Cuda codes.
     183Unlike Windows and Linux, the 'nvcc' cuda compiler for Mac
     184has some trouble compiling .cu files that contain both BOINC and Cuda code.
    184185Any attempt to compile such .cu files might result in errors like
    185186these:
     
    200201while the function headers with "extern" prefix are put in .c file and can be called in main function or elsewhere.
    201202
    202 What if your machine doesn't have an NVIDIA Cuda-enabled GPU? Then, you can compile and run your app in emulation mode.
     203If your machine doesn't have an NVIDIA Cuda-enabled GPU,
     204you can compile and run your app in emulation mode.
    203205As far as we know, NVIDIA Cuda SDK 3.1 no longer supports emulation mode.
    204206Thus, you will need to install an older Cuda SDK version, like version 3.0, on your machine.