public class ShadowBuffer extends Object
| Constructor and Description | 
|---|
| ShadowBuffer(GPUObject gpuObj) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clearShadowPointer()Removes the content from shadow buffer | 
| boolean | isBuffered()Check if the gpu object is shadow buffered | 
| boolean | isEligibleForBuffering(boolean isEviction,
                      boolean eagerDelete)Checks if the GPU object is eligible for shadow buffering | 
| void | moveFromDevice(String instName)Move the data from GPU to shadow buffer | 
| void | moveToDevice()Move the data from shadow buffer to GPU | 
| void | moveToHost()Move the data from shadow buffer to Matrix object | 
public ShadowBuffer(GPUObject gpuObj)
public boolean isBuffered()
public void moveFromDevice(String instName)
instName - name of the instructionpublic void moveToHost()
public void moveToDevice()
public boolean isEligibleForBuffering(boolean isEviction,
                                      boolean eagerDelete)
isEviction - true if this method is called during evictioneagerDelete - true if the data on device has to be eagerly deletedpublic void clearShadowPointer()
Copyright © 2020 The Apache Software Foundation. All rights reserved.