RAPIDS
    Preparing search index...

    Class PoolMemoryResource

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • upstreamMemoryResource: MemoryResource

        The MemoryResource from which to allocate blocks for the pool.

      • OptionalinitialPoolSize: number

        Initial pool size in bytes. By default, an implementation-defined pool size is used.

      • OptionalmaximumPoolSize: number

        Maximum size in bytes, that the pool can grow to.

      Returns PoolMemoryResource

    Properties

    memoryResource: MemoryResource
    supportsGetMemInfo: boolean
    supportsStreams: boolean

    Methods

    • Queries the amount of free and total memory for the resource.

      Parameters

      • Optionalstream: number

        the stream whose memory manager we want to retrieve

      Returns [number, number]

      a tuple which contains [free memory, total memory] (in bytes)

    • Parameters

      • other: MemoryResource

        The other resource to compare to

      Returns boolean

      true if the two resources are equal, else false

      Two CudaMemoryResource instances always compare equal, because they can each deallocate memory allocated by the other.