Note that NVIDIA Cuda SDK 3.0 or older supports device emulation mode. The VS project file, example_app_nvcuda.vcproj, is in boinc/win_build/. The 32-bit Windows samples compile under Visual Studio. It is supplied with 3 minimal init_data.xml files, one for each of these 3 vendors (GPU 'types'.) Copy the appropriate init_data.xml file into the directory containing the openclapp executable. This same sample is designed to run with AMD, NVIDIA and Intel Ivy Bridge GPUs. Please see the ReadMe.txt file for more information. Actual project applications must also do this. The openclapp sample calls boinc_get_opencl_ids(), which reads an init_data.xml file to determine which GPU to use. (Exception: no SDK is required for the OpenCL sample on Mac OS X, which has OpenCL support built in.) This document assumes version 5 of the NVIDIA SDK or version 2.8 of the AMD SDK. The source files are in the BOINC source tree in samples/nvcuda and samples/openclapp.īefore starting, you must install the appropriate SDK for the GPU you wish to support: NVIDIA SDK, ATI / AMD SDK or Intel Ivy Bridge.
We have built sample BOINC-Cuda and BOINC-OpenCL applications as templates for making your own app. Building BOINC applications with Cuda and OpenCL.