MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / isDeviceBufferAccessible

Function isDeviceBufferAccessible

src/backend/cuda/platform.cpp:214–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214bool 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
220int getBackend() { return AF_BACKEND_CUDA; }
221

Callers 1

checkAndMigrateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected