Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ setDevice
Function
setDevice
src/api/cpp/device.cpp:77–77 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
75
int devicecount() { return getDeviceCount(); }
76
77
void setDevice(const int device) { AF_THROW(af_set_device(device)); }
78
79
void deviceset(const int device) { setDevice(device); }
80
Callers
3
deviceset
Function · 0.70
af_set_device
Function · 0.50
releaseHandle
Function · 0.50
Calls
1
af_set_device
Function · 0.50
Tested by
no test coverage detected