67 const int8_t* host_ptr,
68 const size_t num_bytes,
69 const int device_num) {
73 const int8_t* device_ptr,
74 const size_t num_bytes,
75 const int device_num) {
80 const size_t num_bytes,
81 const int dest_device_num,
82 const int src_device_num) {
101 const size_t num_bytes,
102 const int device_num) {
106 const unsigned char uc,
107 const size_t num_bytes,
108 const int device_num) {
void freeDeviceMem(int8_t *device_ptr)
void zeroDeviceMem(int8_t *device_ptr, const size_t num_bytes, const int device_num)
void copyHostToDevice(int8_t *device_ptr, const int8_t *host_ptr, const size_t num_bytes, const int device_num)
void setDeviceMem(int8_t *device_ptr, const unsigned char uc, const size_t num_bytes, const int device_num)
std::unique_ptr< L0CommandList > create_command_list() const
std::shared_ptr< L0Module > create_module(uint8_t *code, size_t len, bool log=false) const
void copy(void *dst, const void *src, const size_t num_bytes)
void submit(L0CommandQueue &queue)
std::shared_ptr< L0CommandQueue > command_queue() const
void copyDeviceToDevice(int8_t *dest_ptr, int8_t *src_ptr, const size_t num_bytes, const int dest_device_num, const int src_device_num)
std::vector< std::shared_ptr< L0Device > > devices_
void synchronizeDevices() const
void copyDeviceToHost(int8_t *host_ptr, const int8_t *device_ptr, const size_t num_bytes, const int device_num)
void freePinnedHostMem(int8_t *host_ptr)
const std::vector< std::shared_ptr< L0Driver > > & drivers() const
int8_t * allocatePinnedHostMem(const size_t num_bytes)
std::vector< std::shared_ptr< L0Driver > > drivers_
void * allocate_device_mem(const size_t num_bytes, L0Device &device)
int8_t * allocateDeviceMem(const size_t num_bytes, const int device_num)
const std::vector< std::shared_ptr< L0Device > > & devices() const
std::shared_ptr< L0Kernel > create_kernel(const char *name, uint32_t x, uint32_t y, uint32_t z) const