MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / memAllocUser

Function memAllocUser

src/backend/cpu/memory.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void *memAllocUser(const size_t &bytes) {
66 dim4 dims(bytes);
67 void *ptr = memoryManager().alloc(true, 1, dims.get(), 1);
68 return ptr;
69}
70
71void memFree(void *ptr) { return memoryManager().unlock(ptr, false); }
72

Callers 2

af_alloc_deviceFunction · 0.50
af_alloc_device_v2Function · 0.50

Calls 2

allocMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected