Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ af_get_device
Function
af_get_device
src/api/c/device.cpp:220–226 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
218
}
219
220
af_err af_get_device(int* device) {
221
try {
222
*device = static_cast<int>(getActiveDeviceId());
223
}
224
CATCHALL;
225
return AF_SUCCESS;
226
}
227
228
af_err af_set_device(const int device) {
229
try {
Callers
3
testImage
Function · 0.50
testData
Function · 0.50
getDevice
Function · 0.50
Calls
1
getActiveDeviceId
Function · 0.50
Tested by
no test coverage detected