Options
All
  • Public
  • Public/Protected
  • All
Menu
summary

A container for managing the lifetime of a DeviceMemory allocation exported for reading and/or writing by other processes with access to the allocation's associated Device.

Hierarchy

Index

Constructors

constructor

  • new IpcHandle(deviceMemory: DeviceMemory, byteOffset?: number): IpcHandle

Properties

Readonly buffer

buffer: DeviceMemory
summary

The exported DeviceMemory

Readonly byteOffset

byteOffset: number
summary

The byte offset (if applicable) into the exported DeviceMemory

Readonly device

device: number
summary

The device ordinal associated with the exported DeviceMemory

Readonly handle

handle: Uint8Array
summary

The CUDA IPC handle to be used to access the exported DeviceMemory from another process.

Methods

toJSON

  • toJSON(): { byteLength: number; byteOffset: number; device: number; handle: number[] }
  • summary

    An object describing the exported DeviceMemory and CUDA IPC handle.

    Returns { byteLength: number; byteOffset: number; device: number; handle: number[] }

    An object with the device ordinal, the 64-bit IPC handle (as a JavaScript Array of octets), byte offset (if applicable) into the exported DeviceMemory, byte length of the IPC segment.

    • byteLength: number
    • byteOffset: number
    • device: number
    • handle: number[]

toString

  • toString(): string