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

Function getDevice

src/api/cpp/device.cpp:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79void deviceset(const int device) { setDevice(device); }
80
81int getDevice() {
82 int device = 0;
83 AF_THROW(af_get_device(&device));
84 return device;
85}
86
87bool isDoubleAvailable(const int device) {
88 bool temp;

Callers 15

testRandomEngineUniformFunction · 0.85
BINARY_TESTS_NEARFunction · 0.85
fft.cppFile · 0.85
TESTFunction · 0.85
noDoubleTestsFunction · 0.85
noHalfTestsFunction · 0.85
infoTestFunction · 0.85
getDeviceTypeFunction · 0.85
OneAPICPUOffloadFunction · 0.85
removeDeviceContextFunction · 0.85
joinFunction · 0.85
iirFunction · 0.85

Calls 1

af_get_deviceFunction · 0.50

Tested by 2

noDoubleTestsFunction · 0.68
noHalfTestsFunction · 0.68