| 212 | } |
| 213 | |
| 214 | bool isDeviceBufferAccessible(int buf_device_id, int execution_id) { |
| 215 | DeviceManager &mngr = DeviceManager::getInstance(); |
| 216 | return buf_device_id == execution_id || |
| 217 | mngr.device_peer_access_map[buf_device_id][execution_id]; |
| 218 | } |
| 219 | |
| 220 | int getBackend() { return AF_BACKEND_CUDA; } |
| 221 |