| 33 | namespace arm_compute |
| 34 | { |
| 35 | void *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 | |
| 43 | void CLBufferAllocator::free(void *ptr) |
| 44 | { |
no test coverage detected