0.0.1 • Published 7 years ago

cuda-runtime v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

cuda-runtime

CUDA runtime support functions

const CudaMemory = require('cuda-runtime').Memory;
const CudaDriverVersion = require('cuda-runtime').driverVersion();
const CudaRuntimeVersion = require('cuda-runtime').runtimeVersion();

let mem = new CudaMemory(512); // allocate 512 bytes of device memory

mem.set(new Buffer(512)); // memcpy buffer into device memory

let x = new Buffer(512);
mem.get(x); // read back memory from device
0.0.1

7 years ago