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

Function clCreateBuffer

src/core/CL/OpenCL.cpp:835–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835cl_mem clCreateBuffer(cl_context context, cl_mem_flags flags, size_t size, void *host_ptr, cl_int *errcode_ret)
836{
837 arm_compute::CLSymbols::get().load_default();
838 auto func = arm_compute::CLSymbols::get().clCreateBuffer_ptr;
839 if (func != nullptr)
840 {
841 return func(context, flags, size, host_ptr, errcode_ret);
842 }
843 else
844 {
845 if (errcode_ret != nullptr)
846 {
847 *errcode_ret = CL_OUT_OF_RESOURCES;
848 }
849 return nullptr;
850 }
851}
852
853cl_program clCreateProgramWithSource(
854 cl_context context, cl_uint count, const char **strings, const size_t *lengths, cl_int *errcode_ret)

Callers 3

allocateMethod · 0.85
BufferMethod · 0.85
BufferMethod · 0.85

Calls 1

load_defaultMethod · 0.80

Tested by

no test coverage detected