Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
79
void deviceset(const int device) { setDevice(device); }
80
81
int getDevice() {
82
int device = 0;
83
AF_THROW(af_get_device(&device));
84
return device;
85
}
86
87
bool isDoubleAvailable(const int device) {
88
bool temp;
Callers
15
testRandomEngineUniform
Function · 0.85
BINARY_TESTS_NEAR
Function · 0.85
fft.cpp
File · 0.85
TEST
Function · 0.85
noDoubleTests
Function · 0.85
noHalfTests
Function · 0.85
infoTest
Function · 0.85
getDeviceType
Function · 0.85
OneAPICPUOffload
Function · 0.85
removeDeviceContext
Function · 0.85
join
Function · 0.85
iir
Function · 0.85
Calls
1
af_get_device
Function · 0.50
Tested by
2
noDoubleTests
Function · 0.68
noHalfTests
Function · 0.68