Class RmmPoolMemoryResource<C extends RmmDeviceMemoryResource>

java.lang.Object
ai.rapids.cudf.RmmWrappingDeviceMemoryResource<C>
ai.rapids.cudf.RmmPoolMemoryResource<C>
All Implemented Interfaces:
RmmDeviceMemoryResource, AutoCloseable

public class RmmPoolMemoryResource<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>
A device memory resource that will pre-allocate a pool of resources and sub-allocate from this pool to improve memory performance.
  • Constructor Details

    • RmmPoolMemoryResource

      public RmmPoolMemoryResource(C wrapped, long initSize, long maxSize)
      Create a new pooled memory resource taking ownership of the RmmDeviceMemoryResource that it is wrapping.
      Parameters:
      wrapped - the memory resource to use for the pool. This should not be reused.
      initSize - the size of the initial pool
      maxSize - the size of the maximum pool
  • Method Details