RAPIDS
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • OptionaldeviceId: number
      • Optionalflags: DeviceFlags

      Returns Device

    Properties

    id: number

    The CUDA device identifer

    pciBusName: string

    The CUDA device PCI bus string id

    Accessors

    • get name(): string

      The human-readable name of this CUDA Device

      Returns string

    • get pciBusId(): number

      The PCI Bus identifier of this CUDA Device

      Returns number

    • get activeDeviceId(): number

      The id of this thread's active CUDA device.

      Returns number

    • get numDevices(): number

      The number of compute-capable CUDA devices.

      Returns number

    Methods

    • Returns this

      Sets this device as the current device for the calling host thread.

      Any device memory subsequently allocated from this host thread will be physically resident on this device. Any host memory allocated from this host thread will have its lifetime associated with this device. Any streams or events created from this host thread will be associated with this device. Any kernels launched from this host thread will be executed on this device.

      This call may be made from any host thread, to any device, and at any time. This function will do no synchronization with the previous or new device, and should be considered a very low overhead call.

    • Parameters

      • work: () => any

        A function to execute

      Returns this

    • Parameters

      Returns boolean

      true if this Device's contexts are capable of directly accessing memory from contexts on peerDevice, otherwise false.

    • Parameters

      Returns this

    • Parameters

      Returns this

    • Returns DeviceFlags

    • Returns DeviceProperties

    • Returns this

      Explicitly destroys and cleans up all resources associated with the current device in the current process. Any subsequent API call to this device will reinitialize the device.

      Note that this function will reset the device immediately. It is the caller's responsibility to ensure that the device is not being accessed by any other host threads from the process when this function is called.

    • Parameters

      • newFlags: DeviceFlags

        The new flags for the device's primary context.

      Returns void

    • Returns this

      Blocks execution of further device calls until the device has completed all preceding requested tasks.

      an error if one of the preceding tasks has failed. If the cudaDeviceScheduleBlockingSync flag was set for this device, the host thread will block until the device has finished its work.