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

Function getActiveDeviceId

src/backend/opencl/platform.cpp:231–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231int getActiveDeviceId() {
232 // Second element is the queue id, which is
233 // what we mean by active device id in opencl backend
234 return get<1>(tlocalActiveDeviceId());
235}
236
237int getDeviceIdFromNativeId(cl_device_id id) {
238 DeviceManager& devMngr = DeviceManager::getInstance();

Callers 15

getDeviceInfoFunction · 0.70
devpropFunction · 0.70
setDeviceFunction · 0.70
syncFunction · 0.70
getOpenCLCDeviceVersionFunction · 0.70
getActiveDeviceIdMethod · 0.70
nativeAllocMethod · 0.70
nativeFreeMethod · 0.70
getKernelFunction · 0.70
half>Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected