RAPIDS
    Preparing search index...

    Class FixedSizeMemoryResource

    Supports only allocations of size smaller than the configured blockSize.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • upstreamMemoryResource: MemoryResource

        The MemoryResource from which to allocate blocks for the pool.

      • OptionalblockSize: number

        The size of blocks to allocate (default is 1MiB).

      • OptionalblocksToPreallocate: number

        The number of blocks to allocate to initialize the pool.

      Returns FixedSizeMemoryResource

    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.