24.08
|
#include <IWorkingMemHandle.hpp>
Public Member Functions | |
virtual | ~IWorkingMemHandle () |
virtual NetworkId | GetNetworkId ()=0 |
Returns the NetworkId of the Network that this IWorkingMemHandle works with. More... | |
virtual void | Allocate ()=0 |
Allocate the backing memory required for execution. More... | |
virtual void | Free ()=0 |
Free the backing memory required for execution. More... | |
virtual bool | IsAllocated ()=0 |
IsAllocated returns true if the backing memory is currently allocated. More... | |
virtual WorkingMemDescriptor & | GetWorkingMemDescriptorAt (unsigned int id)=0 |
Get the WorkingMemDescriptor at an index. More... | |
virtual std::pair< BackendId, ExecutionData > & | GetExecutionDataAt (unsigned int id)=0 |
Get the ExecutionData at an index. More... | |
Definition at line 20 of file IWorkingMemHandle.hpp.
|
inlinevirtual |
Definition at line 23 of file IWorkingMemHandle.hpp.
|
pure virtual |
Allocate the backing memory required for execution.
If this is not called, then allocation will be deferred to execution time.
Implemented in WorkingMemHandle.
|
pure virtual |
Free the backing memory required for execution.
Implemented in WorkingMemHandle.
|
pure virtual |
Get the ExecutionData at an index.
The ExecutionData is paired with a BackendId to be able to call backend specific functions upon it. The ExecutionData are stored in the same order as the Workloads in a topologically sorted graph.
Implemented in WorkingMemHandle.
|
pure virtual |
Returns the NetworkId of the Network that this IWorkingMemHandle works with.
Implemented in WorkingMemHandle.
Referenced by RuntimeImpl::Execute().
|
pure virtual |
Get the WorkingMemDescriptor at an index.
The WorkingMemDescriptors are stored in the same order as the Workloads in a topologically sorted graph.
Implemented in WorkingMemHandle.
|
pure virtual |
IsAllocated returns true if the backing memory is currently allocated.
Implemented in WorkingMemHandle.