derelict_extras-opencl ~master
A dynamic binding to the OpenCL library.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
DerelictOpenCL
A dynamic binding to OpenCL for the D Programming Language.
For information on how to build DerelictCL and link it with your programs, please see the post Using Derelict at The One With D.
For information on how to load the OpenCL library via DerelictCL, see the page DerelictUtil for Users at the DerelictUtil Wiki. In the meantime, here's some sample code.
import derelict.opencl.cl;
void main() {
// Load the OpenCL library.
DerelictCL.load();
// Query platforms and devices
...
// Reload the OpenCL library.
DerelictCL.reload(<chosen_version>);
// Load OpenCL official extensions.
DerelictCL.loadEXT(<chosen_platform>);
// Now OpenCL functions can be called.
...
}
- Registered by Gerbrand Kamphuis
- ~master released 10 years ago
- MeinMein/DerelictCL
- github.com/MeinMein/DerelictCL
- Boost
- Authors:
- Dependencies:
- derelict-util
- Versions:
-
1.2.1 2014-Jul-03 1.2.0 2013-Nov-20 ~master 2014-Dec-08 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
837 downloads total
-
- Score:
- 0.5
- Short URL:
- derelict_extras-opencl.dub.pm