| 401 | } |
| 402 | |
| 403 | cl_context clCreateContext(const cl_context_properties *properties, |
| 404 | cl_uint num_devices, |
| 405 | const cl_device_id *devices, |
| 406 | void (*pfn_notify)(const char *, const void *, size_t, void *), |
| 407 | void *user_data, |
| 408 | cl_int *errcode_ret) |
| 409 | { |
| 410 | arm_compute::CLSymbols::get().load_default(); |
| 411 | auto func = arm_compute::CLSymbols::get().clCreateContext_ptr; |
| 412 | if (func != nullptr) |
| 413 | { |
| 414 | return func(properties, num_devices, devices, pfn_notify, user_data, errcode_ret); |
| 415 | } |
| 416 | else |
| 417 | { |
| 418 | return nullptr; |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | cl_context clCreateContextFromType(const cl_context_properties *properties, |
| 423 | cl_device_type device_type, |