Package org.apache.sysds.runtime.lineage
Class LineageGPUCacheEviction
java.lang.Object
org.apache.sysds.runtime.lineage.LineageGPUCacheEviction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic jcuda.PointercopyToHostCache(LineageCacheEntry entry) static voiddecrementLiveCount(jcuda.Pointer ptr) static Set<jcuda.Pointer>static booleanstatic intstatic 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 long
-
Field Details
-
gpuEvictionThread
-
-
Constructor Details
-
LineageGPUCacheEviction
public LineageGPUCacheEviction()
-
-
Method Details
-
decrementLiveCount
public static void decrementLiveCount(jcuda.Pointer ptr) -
probeLiveCachedPointers
public static boolean probeLiveCachedPointers(jcuda.Pointer ptr) -
removeAllEntries
public static void removeAllEntries(double evictFrac) -
setGPUContext
-
isGPUCacheFreeQEmpty
public static boolean isGPUCacheFreeQEmpty() -
pollFirstFreeEntry
-
pollFistFreeNotExact
-
numPointersCached
public static int numPointersCached() -
totalMemoryCached
public static long totalMemoryCached() -
getAllCachedPointers
-
copyToHostCache
-
removeFromDeviceCache
public static void removeFromDeviceCache(LineageCacheEntry entry, jcuda.Pointer ptr, boolean removeFromCache)
-