Socket
Socket
Sign inDemoInstall

@rapidsai/cuda

Package Overview
Dependencies
79
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rapidsai/cuda

NVIDIA CUDA driver and runtime API bindings


Version published
Weekly downloads
2
decreased by-80%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 05 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc