10 #include <cynq/enums.hpp>
11 #include <cynq/execution-graph.hpp>
12 #include <cynq/status.hpp>
63 virtual Status Sync(std::shared_ptr<IExecutionGraph> graph,
133 const std::size_t size,
134 uint8_t* hostptr, uint8_t* devptr,
Interface for standardising the API of Memory devices: XRTMemory.
Definition: memory.hpp:21
virtual std::shared_ptr< uint8_t > GetDeviceAddress()=0
GetDeviceAddress method Get the Address that belongs to the device. [Reference] shared memory pointer...
virtual ~IMemory()=default
~IMemory destructor method Destroy the IMemory object.
virtual Status Sync(const SyncType type)=0
Sync method Synchronizes the memory in terms of transactions.
std::shared_ptr< T > DeviceAddress()
DeviceAddress method Getter for the address of the device.
Definition: memory.hpp:97
static std::shared_ptr< IMemory > Create(IMemory::Type impl, const std::size_t size, uint8_t *hostptr, uint8_t *devptr, void *moverptr)
Create method Factory method to create specific subclasses of IMemory.
Definition: memory.cpp:14
virtual std::shared_ptr< uint8_t > GetHostAddress()=0
GetHostAddress method Get the Address that belongs to the host. [Reference] shared memory pointer wit...
virtual size_t Size()=0
Size method Gives the value for the memory size in bytes.
Type
Type Type of runtime supported by the IMemory.
Definition: memory.hpp:35
@ XRT
Definition: memory.hpp:39
@ None
Definition: memory.hpp:37
std::shared_ptr< T > HostAddress()
HostAddress method Getter for the address of the host.
Definition: memory.hpp:83
Structure to define the return characteristics of each function.
Definition: status.hpp:19