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

Function getActiveDeviceId

src/backend/cpu/platform.cpp:125–125  ·  view source on GitHub ↗

Get the currently active device id

Source from the content-addressed store, hash-verified

123
124// Get the currently active device id
125unsigned getActiveDeviceId() { return DeviceManager::ACTIVE_DEVICE_ID; }
126
127size_t getDeviceMemorySize(int device) {
128 UNUSED(device);

Callers 11

getDeviceInfoFunction · 0.70
getActiveDeviceIdMethod · 0.70
ArrayMethod · 0.70
evalMultipleFunction · 0.70
getKernelFunction · 0.50
SparseArrayBaseMethod · 0.50
af_get_deviceFunction · 0.50
af_syncFunction · 0.50
sparse.cppFile · 0.50
af_print_mem_infoFunction · 0.50
releaseHandleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected