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

Function clCreateContext

src/core/CL/OpenCL.cpp:403–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403cl_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
422cl_context clCreateContextFromType(const cl_context_properties *properties,
423 cl_device_type device_type,

Callers 1

ContextMethod · 0.85

Calls 1

load_defaultMethod · 0.80

Tested by

no test coverage detected