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

Function setActiveContext

src/backend/oneapi/platform.cpp:211–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void setActiveContext(int device) {
212 tlocalActiveDeviceId() = make_pair(device, device);
213}
214
215int getDeviceCount() noexcept try {
216 DeviceManager& devMngr = DeviceManager::getInstance();

Callers 3

setDeviceFunction · 0.70
setDeviceContextFunction · 0.70
DeviceManagerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected