#include <Config.h>
|
std::string | id () override |
| Returns ID of the backend.
|
|
bool | initialize () override |
| Initialize the backend. This is called as soon as the backend is loaded.
|
|
bool | supportPermutation () override |
|
bool | supportDynamicTensor () override |
|
bool | supportFP16 () override |
|
void | sync () const override |
| The function that is called after each Operation run on profiling mode. This may be useful for profiling GPU-based or special computing units.
|
|
std::unique_ptr< util::ITimer > | timer () override |
| Returns Timer object for this backend. For some computing units, it may need its own Timer implementation.
|
|
virtual | ~IConfig ()=default |
|
Definition at line 32 of file Config.h.
◆ id()
std::string onert::backend::acl_cl::Config::id |
( |
| ) |
|
|
inlineoverridevirtual |
◆ initialize()
bool onert::backend::acl_cl::Config::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize the backend. This is called as soon as the backend is loaded.
- Returns
- true Initialization succeeded
-
false Initialization failed, so it cannot use this backend
Implements onert::backend::IConfig.
Definition at line 35 of file Config.cc.
36{
37 if (!arm_compute::opencl_is_available())
38 {
39 return false;
40 }
41 arm_compute::CLScheduler::get().default_init();
42
43
45 "./cl_kernels/", arm_compute::CLScheduler::get().context(), cl::Device::getDefault());
46
47 return true;
48}
void init(std::string kernel_path, cl::Context context, cl::Device device)
Initialise the kernel library.
static CLKernelLibraryEx & get()
Get the KernelLibrary singleton.
References arm_compute::CLKernelLibraryEx::get(), and arm_compute::CLKernelLibraryEx::init().
◆ supportDynamicTensor()
bool onert::backend::acl_cl::Config::supportDynamicTensor |
( |
| ) |
|
|
inlineoverridevirtual |
◆ supportFP16()
bool onert::backend::acl_cl::Config::supportFP16 |
( |
| ) |
|
|
inlineoverridevirtual |
◆ supportPermutation()
bool onert::backend::acl_cl::Config::supportPermutation |
( |
| ) |
|
|
inlineoverridevirtual |
◆ sync()
void onert::backend::acl_cl::Config::sync |
( |
| ) |
const |
|
inlineoverridevirtual |
The function that is called after each Operation run on profiling mode. This may be useful for profiling GPU-based or special computing units.
Reimplemented from onert::backend::IConfig.
Definition at line 40 of file Config.h.
40{ arm_compute::CLScheduler::get().sync(); }
◆ timer()
std::unique_ptr< util::ITimer > onert::backend::acl_cl::Config::timer |
( |
| ) |
|
|
inlineoverridevirtual |
Returns Timer object for this backend. For some computing units, it may need its own Timer implementation.
- Returns
- std::unique_ptr<util::ITimer> Timer object for this backend
Reimplemented from onert::backend::IConfig.
Definition at line 42 of file Config.h.
42{ return std::make_unique<CLTimer>(); }
The documentation for this class was generated from the following files: