MCPcopy 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
142size_t Allocator::getMaxMemorySize(int id) {
143 return cpu::getDeviceMemorySize(id);
144}
145
146void *Allocator::nativeAlloc(const size_t bytes) {
147 void *ptr = malloc(bytes); // NOLINT(hicpp-no-malloc)

Callers 1

Calls 1

getDeviceMemorySizeFunction · 0.70

Tested by

no test coverage detected