Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/DerelictOrg/DerelictCL

Dynamic bindings to the OpenCL library for the D Programming Language.
https://github.com/DerelictOrg/DerelictCL

Last synced: 10 minutes ago
JSON representation

Dynamic bindings to the OpenCL library for the D Programming Language.

Awesome Lists containing this project

README

        

DerelictOpenCL
==============

A dynamic binding to [OpenCL](http://www.khronos.org/opencl/) for the D Programming Language.

Please see the pages [Building and Linking Derelict](http://derelictorg.github.io/compiling.html) and [Using Derelict](http://derelictorg.github.io/using.html), or information on how to build DerelictCL and load the OpenCL library at run time. In the meantime, here's some sample code.

```D
import derelict.opencl.cl;

void main() {
// Load the OpenCL library.
DerelictCL.load();

// Query platforms and devices
...

// Reload the OpenCL library.
DerelictCL.reload();

// Load OpenCL official extensions.
DerelictCL.loadEXT();

// Now OpenCL functions can be called.
...
}
```