22.12.1 • Published 11 months ago

@rapidsai/cuda v22.12.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

node-cuda (npm install @rapidsai/cuda)

A node native addon that provides bindings to the CUDA driver and runtime APIs.
These bindings allow calling the CUDA device management, memory, stream, event, ipc, and
DX/GL interop APIs from JS. These APIs allow node (v8 or chakracore) applications to read,
write, and share memory via zero-copy CUDA IPC with external processes that also use the
CUDA, OpenGL, and RAPIDS libraries.

Device management:

cudaChooseDevice, cudaGetDeviceCount, cuDeviceGet, cudaDeviceGetPCIBusId, cudaDeviceGetByPCIBusId, cudaGetDevice, cudaGetDeviceFlags, cudaGetDeviceProperties, cudaSetDevice, cudaSetDeviceFlags, cudaDeviceReset, cudaDeviceSynchronize, cudaDeviceCanAccessPeer, cudaDeviceEnablePeerAccess, cudaDeviceDisablePeerAccess

Memory:

  • CUDADevice: A class to wrap and manage a CUDA device.
  • CUDABuffer: A class to wrap and manage device memory allocations (similar to ArrayBuffer).
  • CUDAArray: A class to wrap operations like read/write/share on a CUDABuffer (similar to TypedArray).
  • cuPointerGetAttribute, cudaMalloc, cudaFree, cudaMallocHost, cudaFreeHost, cudaHostRegister, cudaHostUnregister, cudaMemcpy, cudaMemset, cudaMemcpyAsync, cudaMemsetAsync, cudaMemGetInfo

IPC:

cudaIpcGetMemHandle, cudaIpcOpenMemHandle, cudaIpcCloseMemHandle

Stream:

cudaStreamCreate, cudaStreamDestroy, cudaStreamSynchronize

OpenGL:

cuGraphicsGLRegisterBuffer, cuGraphicsGLRegisterImage, cuGraphicsUnregisterResource, cuGraphicsMapResources, cuGraphicsUnapResources, cuGraphicsResourceGetMappedPointer
22.12.1

11 months ago

22.12.0

12 months ago

22.8.2

1 year ago

22.8.1

2 years ago

22.8.0

2 years ago

22.6.2

2 years ago

22.6.1

2 years ago

22.6.0

2 years ago