MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / allocate

Method allocate

src/runtime/CL/CLBufferAllocator.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace arm_compute
34{
35void *CLBufferAllocator::allocate(size_t size, size_t alignment)
36{
37 ARM_COMPUTE_UNUSED(alignment);
38 cl_mem buf{clCreateBuffer(CLScheduler::get().context().get(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRITE, size,
39 nullptr, nullptr)};
40 return static_cast<void *>(buf);
41}
42
43void CLBufferAllocator::free(void *ptr)
44{

Callers 15

configureMethod · 0.45
configure_mmMethod · 0.45
configureMethod · 0.45
prepareMethod · 0.45
configureMethod · 0.45
prepareMethod · 0.45
configureMethod · 0.45
prepareMethod · 0.45
configureMethod · 0.45
configureMethod · 0.45
configureMethod · 0.45

Calls 3

clCreateBufferFunction · 0.85
contextMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected