Skip to content

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

Notifications You must be signed in to change notification settings

DerelictOrg/DerelictCUDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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.

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages