cuda-runtime

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cuda-runtime

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • andreasgal