Changes between Version 5 and Version 6 of GPUApp


Ignore:
Timestamp:
Jul 2, 2010, 3:38:27 PM (14 years ago)
Author:
TuanLe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GPUApp

    v5 v6  
    66
    77== Windows == #windows
    8 
     8 * '''NVIDIA Cuda''' (BOINC-NVCuda sample app for Windows can be found at "/boinc/samples/nvcuda/")
     9{{{
     10cuda_kernel.cu; cuda.cu; cuda_config.h
     11}}}
     12 The example_app_nvcuda.vcproj can be found at "boin/win_build/". Note that NVIDIA Cuda SDK 3.0 and older support device emulation mode. If your machine doesn't have a Cuda-enabled GPU, then you should build the sample app in the device emulation mode. Do so by setting "Build -> Configuration Manger -> Configuration" to either EmuDebug or EmuRelease. It comes to our attention that while compiling the sample app, the linker tries to link both the debug and release libraries, and thus causing the following errors:
     13{{{
     14LIBCMTD.lib(dbgheap.obj) : error LNK2005: __heap_alloc already defined in LIBCMT.lib(malloc.obj)
     15LIBCMTD.lib(dbgheap.obj) : error LNK2005: __recalloc already defined in LIBCMT.lib(recalloc.obj)
     16LIBCMTD.lib(dbgheap.obj) : error LNK2005: __msize already defined in LIBCMT.lib(msize.obj)
     17...
     18}}}
     19 One solution to this problem is to set the Hyprid Cuda/C++ Runtime Library point to "Multi-Threaded Debug (/Mtd)". Do so by right click on the project. Set "Properties -> Configuration Properties -> Cuda Build Rule v3.0.14 -> Hybrid CUDA/C++ Options -> Runtime Library" to "Multi-Threaded Debug (/Mtd)".
    920
    1021== Linux == #linux
     
    6273
    6374atiopencl.o: atiopencl.cpp atiopencl.hpp
    64         ...
    65         -I ../../../ati-stream-sdk-v2.1-lnx32/include \
    66         -I ../../../ati-stream-sdk-v2.1-lnx32/samples/opencl/SDKUtil
     75     ...
     76     -I ../../../ati-stream-sdk-v2.1-lnx32/include \
     77     -I ../../../ati-stream-sdk-v2.1-lnx32/samples/opencl/SDKUtil
    6778}}}
    6879 in file "Makefile" and replace these paths with appropriate paths on your machine.
     
    91102- Type "ls", you will see a directory named "etc". The icd-registration.tgz needs to be unzipped to that directory.
    92103- Now copy icd-registration.tgz to "cd /" by typing "sudo cp -r /home/tuanle/Downloads/icd-registration.tgz ."
    93 - You will need to replace the specified path above with the appropriate path on your computer, and don't forget "sudo". Otherwise you will get a "Permission denied".
     104- You will need to replace the specified path above with the appropriate path on your machine, and don't forget "sudo". Otherwise you will get a "Permission denied".
    94105- Unzip by typing "sudo tar xzf icd-registration.tgz"
    95106- Now you should be able to find an "OpenCL" directory in "etc". Check etc/OpenCL/vendors/, make sure there are "atiocl32.icd" and "atiocl64.icd" there.