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

Function clCreateProgramWithBinary

src/core/CL/OpenCL.cpp:705–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705cl_program clCreateProgramWithBinary(cl_context context,
706 cl_uint num_devices,
707 const cl_device_id *device_list,
708 const size_t *lengths,
709 const unsigned char **binaries,
710 cl_int *binary_status,
711 cl_int *errcode_ret)
712{
713 arm_compute::CLSymbols::get().load_default();
714 auto func = arm_compute::CLSymbols::get().clCreateProgramWithBinary_ptr;
715 if (func != nullptr)
716 {
717 return func(context, num_devices, device_list, lengths, binaries, binary_status, errcode_ret);
718 }
719 else
720 {
721 if (errcode_ret != nullptr)
722 {
723 *errcode_ret = CL_OUT_OF_RESOURCES;
724 }
725 return nullptr;
726 }
727}
728
729cl_int clRetainContext(cl_context context)
730{

Callers 1

ProgramMethod · 0.85

Calls 1

load_defaultMethod · 0.80

Tested by

no test coverage detected