OmniSciDB
a5dc49c757
|
#include <L0Mgr.h>
Public Member Functions | |
L0Manager () | |
void | copyHostToDevice (int8_t *device_ptr, const int8_t *host_ptr, const size_t num_bytes, const int device_num) |
void | copyDeviceToHost (int8_t *host_ptr, const int8_t *device_ptr, const size_t num_bytes, const int device_num) |
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) |
int8_t * | allocatePinnedHostMem (const size_t num_bytes) |
int8_t * | allocateDeviceMem (const size_t num_bytes, const int device_num) |
void | freePinnedHostMem (int8_t *host_ptr) |
void | freeDeviceMem (int8_t *device_ptr) |
void | zeroDeviceMem (int8_t *device_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) |
void | synchronizeDevices () const |
const std::vector < std::shared_ptr< L0Driver > > & | drivers () const |
Private Attributes | |
std::vector< std::shared_ptr < L0Driver > > | drivers_ |
int8_t * l0::L0Manager::allocateDeviceMem | ( | const size_t | num_bytes, |
const int | device_num | ||
) |
Definition at line 213 of file L0Mgr.cpp.
References l0::allocate_device_mem(), and drivers_.
int8_t * l0::L0Manager::allocatePinnedHostMem | ( | const size_t | num_bytes | ) |
void l0::L0Manager::copyDeviceToDevice | ( | int8_t * | dest_ptr, |
int8_t * | src_ptr, | ||
const size_t | num_bytes, | ||
const int | dest_device_num, | ||
const int | src_device_num | ||
) |
void l0::L0Manager::copyDeviceToHost | ( | int8_t * | host_ptr, |
const int8_t * | device_ptr, | ||
const size_t | num_bytes, | ||
const int | device_num | ||
) |
void l0::L0Manager::copyHostToDevice | ( | int8_t * | device_ptr, |
const int8_t * | host_ptr, | ||
const size_t | num_bytes, | ||
const int | device_num | ||
) |
Definition at line 266 of file L0Mgr.cpp.
References drivers().
const std::vector< std::shared_ptr< L0Driver > > & l0::L0Manager::drivers | ( | ) | const |
Definition at line 209 of file L0Mgr.cpp.
References drivers_.
Referenced by copyHostToDevice().
void l0::L0Manager::freeDeviceMem | ( | int8_t * | device_ptr | ) |
void l0::L0Manager::freePinnedHostMem | ( | int8_t * | host_ptr | ) |
void l0::L0Manager::setDeviceMem | ( | int8_t * | device_ptr, |
const unsigned char | uc, | ||
const size_t | num_bytes, | ||
const int | device_num | ||
) |
Definition at line 317 of file L0Mgr.cpp.
References drivers_, and L0_SAFE_CALL.
Referenced by zeroDeviceMem().
void l0::L0Manager::synchronizeDevices | ( | ) | const |
void l0::L0Manager::zeroDeviceMem | ( | int8_t * | device_ptr, |
const size_t | num_bytes, | ||
const int | device_num | ||
) |
Definition at line 312 of file L0Mgr.cpp.
References setDeviceMem().
|
private |
Definition at line 210 of file L0Mgr.h.
Referenced by allocateDeviceMem(), copyDeviceToHost(), drivers(), freeDeviceMem(), setDeviceMem(), and synchronizeDevices().