0.0.1 • Published 7 years ago
cuda-runtime v0.0.1
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