Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/DerelictOrg/DerelictCUDA
- Owner: DerelictOrg
- Created: 2014-10-16T08:02:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T18:22:43.000Z (over 5 years ago)
- Last Synced: 2024-05-02T21:44:55.823Z (7 months ago)
- Language: D
- Size: 162 KB
- Stars: 17
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-d - DerelictCUDA - Dynamic bindings to the CUDA library for the D Programming Language. (Parallel computing / XML)
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