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

Function setDevice

src/backend/cuda/platform.cpp:418–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416size_t getHostMemorySize() { return common::getHostMemorySize(); }
417
418int setDevice(int device) {
419 return DeviceManager::getInstance().setActiveDevice(device);
420}
421
422size_t getL2CacheSize(const int device) {
423 return getDeviceProp(device).l2CacheSize;

Callers 4

~DeviceManagerMethod · 0.70
syncFunction · 0.70
afcu_set_native_idFunction · 0.70
shutdownMethod · 0.70

Calls 1

setActiveDeviceMethod · 0.80

Tested by

no test coverage detected