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

Function clCreateProgramWithSource

src/core/CL/OpenCL.cpp:853–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853cl_program clCreateProgramWithSource(
854 cl_context context, cl_uint count, const char **strings, const size_t *lengths, cl_int *errcode_ret)
855{
856 arm_compute::CLSymbols::get().load_default();
857 auto func = arm_compute::CLSymbols::get().clCreateProgramWithSource_ptr;
858 if (func != nullptr)
859 {
860 return func(context, count, strings, lengths, errcode_ret);
861 }
862 else
863 {
864 if (errcode_ret != nullptr)
865 {
866 *errcode_ret = CL_OUT_OF_RESOURCES;
867 }
868 return nullptr;
869 }
870}
871
872cl_int clReleaseKernel(cl_kernel kernel)
873{

Callers 1

ProgramMethod · 0.85

Calls 1

load_defaultMethod · 0.80

Tested by

no test coverage detected