Class ShadowBuffer
- java.lang.Object
- 
- org.apache.sysds.runtime.instructions.gpu.context.ShadowBuffer
 
- 
 public class ShadowBuffer extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description ShadowBuffer(GPUObject gpuObj)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearShadowPointer()Removes the content from shadow bufferbooleanisBuffered()Check if the gpu object is shadow bufferedbooleanisEligibleForBuffering(boolean isEviction, boolean eagerDelete)Checks if the GPU object is eligible for shadow bufferingvoidmoveFromDevice(String instName)Move the data from GPU to shadow buffervoidmoveToDevice()Move the data from shadow buffer to GPUvoidmoveToHost()Move the data from shadow buffer to Matrix object
 
- 
- 
- 
Constructor Detail- 
ShadowBufferpublic ShadowBuffer(GPUObject gpuObj) 
 
- 
 - 
Method Detail- 
isBufferedpublic boolean isBuffered() Check if the gpu object is shadow buffered- Returns:
- true if the gpu object is shadow buffered
 
 - 
moveFromDevicepublic void moveFromDevice(String instName) Move the data from GPU to shadow buffer- Parameters:
- instName- name of the instruction
 
 - 
moveToHostpublic void moveToHost() Move the data from shadow buffer to Matrix object
 - 
moveToDevicepublic void moveToDevice() Move the data from shadow buffer to GPU
 - 
isEligibleForBufferingpublic boolean isEligibleForBuffering(boolean isEviction, boolean eagerDelete)Checks if the GPU object is eligible for shadow buffering- Parameters:
- isEviction- true if this method is called during eviction
- eagerDelete- true if the data on device has to be eagerly deleted
- Returns:
- true if the given GPU object is eligible to be shadow buffered
 
 - 
clearShadowPointerpublic void clearShadowPointer() Removes the content from shadow buffer
 
- 
 
-