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

Function init

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

Source from the content-addressed store, hash-verified

117int getDeviceCount() { return DeviceManager::NUM_DEVICES; }
118
119void init() {
120 thread_local const auto& instance = DeviceManager::getInstance();
121 UNUSED(instance);
122}
123
124// Get the currently active device id
125unsigned getActiveDeviceId() { return DeviceManager::ACTIVE_DEVICE_ID; }

Callers 14

initMethod · 0.50
morphFunction · 0.50
morph3dFunction · 0.50
operator()Method · 0.50
operator()Method · 0.50
MinMaxOpMethod · 0.50
MinMaxOpMethod · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
seqMethod · 0.50

Calls

no outgoing calls

Tested by 1

initMethod · 0.40