| 703 | } |
| 704 | |
| 705 | cl_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 | |
| 729 | cl_int clRetainContext(cl_context context) |
| 730 | { |