Compute Library
CLHelpers.h File Reference

Go to the source code of this file.


 Copyright (c) 2017-2022 Arm Limited.


std::tuple< cl::Context, cl::Device, cl_int > create_opencl_context_and_device (CLBackendType cl_backend_type)
 This function creates an OpenCL context and a device. More...
void schedule_kernel_on_ctx (CLRuntimeContext *ctx, ICLKernel *kernel, bool flush=true)
 Schedules a kernel using the context if not nullptr else uses the legacy scheduling flow. More...
cl::Platform select_preferable_platform (CLBackendType cl_backend_type)
 This function selects the OpenCL platform based on the backend type. More...