Class RmmArenaMemoryResource<C extends RmmDeviceMemoryResource>

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

public class RmmArenaMemoryResource<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. This uses an algorithm to try and reduce fragmentation much more than the RmmPoolMemoryResource does.
  • Constructor Details

    • RmmArenaMemoryResource

      public RmmArenaMemoryResource(C wrapped, long size, boolean dumpLogOnFailure)
      Create a new arena 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.
      size - the size of the pool
      dumpLogOnFailure - if true, dump memory log when running out of memory.
  • Method Details