derelict_extras-opencl 1.2.1

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

Warning: this an unofficial Derelict binding.

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 Building and Using Packages in DerelictOrg at the Derelict forums.

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.
    ...
}
Authors:
  • Gerbrand Kamphuis (vuaru)
  • p0nce
Dependencies:
derelict-util
Versions:
1.2.1 2014-Jul-03
1.2.0 2013-Nov-20
~master 2014-Dec-08
Show all 3 versions
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