44 if(filename !=
nullptr)
58 if(options !=
nullptr)
68 return _mlgo_heuristics;
95 if(tensor !=
nullptr && allocate)
104 return new ClQueue(
this, options);
ITensorV2 * create_tensor(const AclTensorDescriptor &desc, bool allocate) override
Create a tensor object.
MLGOHeuristics heuristics
Base class specifying the queue interface.
bool reload_from_file(const std::string &filename)
(Re)Load the heuristics from reading a dotmlgo file
static CLScheduler & get()
Access the scheduler singleton.
Base class specifying the tensor interface.
::cl::Context cl_ctx()
Underlying cl context accessor.
void set_context(cl::Context context)
Accessor to set the CL context to be used by the scheduler.
OpenCL queue implementation class.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
const char * kernel_config_file
Kernel cofiguration file.
StatusCode allocate()
Allocates tensor.
::cl::Device cl_dev()
Underlying cl device accessor.
bool set_cl_ctx(::cl::Context ctx)
Update/inject an underlying cl context object.
Copyright (c) 2017-2021 Arm Limited.
const mlgo::MLGOHeuristics & mlgo() const
Extract MLGO heuristics.
int refcount() const
Reference counter accessor.
MLGOHeuristics for configuring GEMM kernels.
OpenCL tensor implementation class.
IQueue * create_queue(const AclQueueOptions *options) override
Create a queue object.
ClContext(const AclContextOptions *options)
Default Constructor.
const cl::Device & get_device()
Gets the CL device for which the programs are created.
cl::Context & context()
Accessor for the associated CL context.