Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ getActiveDeviceId
Method
getActiveDeviceId
src/backend/cpu/memory.cpp:138–140 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
136
}
137
138
int Allocator::getActiveDeviceId() {
139
return static_cast<int>(cpu::getActiveDeviceId());
140
}
141
142
size_t Allocator::getMaxMemorySize(int id) {
143
return cpu::getDeviceMemorySize(id);
Callers
1
af_memory_manager_get_active_device_id
Function · 0.45
Calls
1
getActiveDeviceId
Function · 0.70
Tested by
no test coverage detected