RAPIDS
    Preparing search index...

    Class LoggingResourceAdapter

    Resource that uses an upstream MemoryResource to allocate memory and logs information about the requested allocation/deallocations.

    An instance of this resource can be constructed with an existing, upstream resource in order to satisfy allocation requests and log allocation/deallocation activity.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • upstreamMemoryResource: MemoryResource

        The upstream MemoryResource to log.

      • OptionallogFilePath: string

        Path to the file to which logs are written. If not provided, falls back to the RMM_LOG_FILE environment variable.

      • OptionalautoFlush: boolean

        If true, flushes the log for every (de)allocation. Warning, this will degrade performance.

      Returns LoggingResourceAdapter

    Properties

    logFilePath: string

    Path to the file to which logs are written.

    memoryResource: MemoryResource

    The MemoryResource to use for allocations larger than any of the bins.

    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.