Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/DerelictOrg/DerelictCUDA

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

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

DerelictCUDA
============

A dynamic binding to [CUDA][1] for the D Programming Language.

Only the Driver and Runtime API are provided for now.

Please see the pages [Building and Linking Derelict][2] and [Using Derelict][3], in the Derelict documentation, for information on how to build DerelictCUDA and load the CUDA library at run time. In the meantime, here's some sample code.

```D
import derelict.cuda;

void main() {

DerelictCUDADriver.load();
// Now CUDA Driver API functions can be called.

// Alternatively:
DerelictCUDARuntime.load();
// Now CUDA Runtime API functions can be called. Driver and Runtime API are exclusive.
...
}
```

[1] http://www.nvidia.com/object/cuda_home_new.html
[2]: http://derelictorg.github.io/compiling.html
[3]: http://derelictorg.github.io/using.html