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

Function setActiveContext

src/backend/opencl/platform.cpp:210–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void setActiveContext(int device) {
211 tlocalActiveDeviceId() = make_pair(device, device);
212}
213
214int getDeviceCount() noexcept try {
215 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