Changes between Version 3 and Version 4 of OpenclApps
- Timestamp:
- Dec 6, 2012, 2:25:43 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenclApps
v3 v4 2 2 3 3 You can run OpenCL applications under BOINC. 4 5 OpenCL apps will run only with client versions 6.13.7+.6 4 7 5 == Application requirements == … … 9 7 Your application must call 10 8 {{{ 11 int boinc_get_opencl_ids( cl_device_id*, cl_platform_id*);9 int boinc_get_opencl_ids(int argc, char** argv, int type, cl_device_id* device, cl_platform_id* platform); 12 10 }}} 13 11 14 This returns the OpenCL platform and device IDs for the GPU 15 that your app should use. 12 This returns the OpenCL platform and device IDs for the GPU that your app should use. 13 Pass 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|| 16 18 17 This function is in the library boinc/api/libboinc_opencl.a 19 With 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 21 This function is in the library boinc/api/libboinc_opencl.a (on Macs: boinc/mac_build/build/Deployment/libboinc_opencl.a). 22 As 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 18 24 19 25 == Scheduler requirements ==