Description

A dynamic binding to the CUDA API.

Package Information

Version3.0.0 (2017-Feb-24)
Homepagehttps://github.com/DerelictOrg/DerelictCUDA
Repositoryhttps://github.com/DerelictOrg/DerelictCUDA
LicenseBoost
AuthorsGuillaume Piolat (p0nce)
Registered byponce
Dependencies

derelict-util

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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 and Using Derelict, 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.

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/cudahomenew.html

Available versions

3.0.0 2.0.1 2.0.0 1.1.1 1.1.0 1.0.0 ~master