Changes between Version 3 and Version 4 of OpenclApps


Ignore:
Timestamp:
Dec 6, 2012, 2:25:43 AM (12 years ago)
Author:
charlief
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenclApps

    v3 v4  
    22
    33You can run OpenCL applications under BOINC.
    4 
    5 OpenCL apps will run only with client versions 6.13.7+.
    64
    75== Application requirements ==
     
    97Your application must call
    108{{{
    11 int boinc_get_opencl_ids(cl_device_id*, cl_platform_id*);
     9int boinc_get_opencl_ids(int argc, char** argv, int type, cl_device_id* device, cl_platform_id* platform);
    1210}}}
    1311
    14 This returns the OpenCL platform and device IDs for the GPU
    15 that your app should use.
     12This returns the OpenCL platform and device IDs for the GPU that your app should use.
     13Pass the ''argc'' and ''argv'' your application receives from the BOINC client.  The third argument ''type'' should specify the vendor of the desired GPU and can be one of the following:
     14|| Symbol || value ||
     15||PROC_TYPE_NVIDIA_GPU||1||
     16||PROC_TYPE_AMD_GPU||2||
     17||PROC_TYPE_INTEL_GPU||3||
    1618
    17 This function is in the library boinc/api/libboinc_opencl.a
     19With BOINC Clients version 7.0.12 or later, the first 3 arguments will be ignored and all data will be taken from the init_data.xml file in the slot directory.  The first 3 arguments allow this to work with older BOINC Clients.
     20
     21This function is in the library boinc/api/libboinc_opencl.a (on Macs: boinc/mac_build/build/Deployment/libboinc_opencl.a).
     22As an alternative to linking the library, you can add the file boinc/api/libboinc_opencl.cpp to your source files when building your project application.
     23
    1824
    1925== Scheduler requirements ==