public class Rmm extends Object
| Constructor and Description |
|---|
Rmm() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLog()
If logging is enabled get the log as a String.
|
static void |
initialize(int allocationMode,
boolean enableLogging,
long poolSize)
---------------------------------------------------------------------------*
Initialize memory manager state and storage.
|
static boolean |
isInitialized()
Check if RMM has been initialized already or not.
|
static void |
shutdown()
Shut down any initialized rmm.
|
public static void initialize(int allocationMode,
boolean enableLogging,
long poolSize)
throws RmmException
allocationMode - Allocation strategy to use. Bit set using
RmmAllocationMode.CUDA_DEFAULT,
RmmAllocationMode.POOL and
RmmAllocationMode.CUDA_MANAGED_MEMORYenableLogging - Enable logging memory manager eventspoolSize - The initial pool size in bytesRmmExceptionpublic static boolean isInitialized()
throws RmmException
RmmExceptionpublic static void shutdown()
throws RmmException
RmmExceptionpublic static String getLog() throws RmmException
RmmExceptionCopyright © 2019. All rights reserved.