Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ getMaxMemorySize
Method
getMaxMemorySize
src/backend/cpu/memory.cpp:142–144 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
140
}
141
142
size_t Allocator::getMaxMemorySize(int id) {
143
return cpu::getDeviceMemorySize(id);
144
}
145
146
void *Allocator::nativeAlloc(const size_t bytes) {
147
void *ptr = malloc(bytes); // NOLINT(hicpp-no-malloc)
Callers
1
af_memory_manager_get_max_memory_size
Function · 0.45
Calls
1
getDeviceMemorySize
Function · 0.70
Tested by
no test coverage detected