Package org.apache.sysds.runtime.lineage
Class LineageGPUCacheEviction
- java.lang.Object
-
- org.apache.sysds.runtime.lineage.LineageGPUCacheEviction
-
public class LineageGPUCacheEviction extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ExecutorServicegpuEvictionThread
-
Constructor Summary
Constructors Constructor Description LineageGPUCacheEviction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jcuda.PointercopyToHostCache(LineageCacheEntry entry)static voiddecrementLiveCount(jcuda.Pointer ptr)static Set<jcuda.Pointer>getAllCachedPointers()static booleanisGPUCacheFreeQEmpty()static intnumPointersCached()static LineageCacheEntrypollFirstFreeEntry(long size)static LineageCacheEntrypollFistFreeNotExact(long size)static booleanprobeLiveCachedPointers(jcuda.Pointer ptr)static voidremoveAllEntries(double evictFrac)static voidremoveFromDeviceCache(LineageCacheEntry entry, jcuda.Pointer ptr, boolean removeFromCache)static voidsetGPUContext(GPUContext gpuCtx)static longtotalMemoryCached()
-
-
-
Field Detail
-
gpuEvictionThread
public static ExecutorService gpuEvictionThread
-
-
Method Detail
-
decrementLiveCount
public static void decrementLiveCount(jcuda.Pointer ptr)
-
probeLiveCachedPointers
public static boolean probeLiveCachedPointers(jcuda.Pointer ptr)
-
removeAllEntries
public static void removeAllEntries(double evictFrac)
-
setGPUContext
public static void setGPUContext(GPUContext gpuCtx)
-
isGPUCacheFreeQEmpty
public static boolean isGPUCacheFreeQEmpty()
-
pollFirstFreeEntry
public static LineageCacheEntry pollFirstFreeEntry(long size)
-
pollFistFreeNotExact
public static LineageCacheEntry pollFistFreeNotExact(long size)
-
numPointersCached
public static int numPointersCached()
-
totalMemoryCached
public static long totalMemoryCached()
-
getAllCachedPointers
public static Set<jcuda.Pointer> getAllCachedPointers()
-
copyToHostCache
public static jcuda.Pointer copyToHostCache(LineageCacheEntry entry)
-
removeFromDeviceCache
public static void removeFromDeviceCache(LineageCacheEntry entry, jcuda.Pointer ptr, boolean removeFromCache)
-
-