24 #ifndef __ARM_COMPUTE_CLHELPERS_H__ 25 #define __ARM_COMPUTE_CLHELPERS_H__ 42 static constexpr
bool value =
true;
46 static constexpr
unsigned int max_cl_vector_width = 16;
87 template <
typename Kernel,
typename... T>
90 std::unique_ptr<Kernel> k = arm_compute::support::cpp14::make_unique<Kernel>();
91 k->configure(std::forward<T>(
args)...);
99 template <
typename Kernel>
102 std::unique_ptr<Kernel> k = arm_compute::support::cpp14::make_unique<Kernel>();
CLVersion get_cl_version(const cl::Device &device)
Helper function to get the highest OpenCL version supported.
static constexpr bool value
bool non_uniform_workgroup_support(const cl::Device &device)
Helper function to check whether the arm_non_uniform_work_group_size extension is supported...
std::string get_data_size_from_data_type(const DataType &dt)
Get the size of a data type in number of bits.
std::string get_cl_type_from_data_type(const DataType &dt)
Translates a tensor data type to the appropriate OpenCL type.
This file contains all available output stages for GEMMLowp on OpenCL.
GPUTarget get_arch_from_target(GPUTarget target)
Helper function to get the GPU arch.
std::string get_underlying_cl_type_from_data_type(const DataType &dt)
Translates fixed point tensor data type to the underlying OpenCL type.
std::unique_ptr< Kernel > create_kernel()
Helper function to create and return a unique_ptr pointed to a CL kernel object.
std::unique_ptr< Kernel > create_configure_kernel(T &&...args)
Helper function to create and return a unique_ptr pointed to a CL kernel object It also calls the ker...
GPUTarget
Available GPU Targets.
GPUTarget get_target_from_device(cl::Device &device)
Helper function to get the GPU target from CL device.
bool fp16_support(const cl::Device &device)
Helper function to check whether the cl_khr_fp16 extension is supported.
DataType
Available data types.
const std::string & string_from_target(GPUTarget target)
Translates a given gpu device target to string.