diff options
author | steniu01 <steven.niu@arm.com> | 2017-07-11 09:22:58 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:15:39 +0100 |
commit | 34702479adcf3559e8ebe27915179af509b070d2 (patch) | |
tree | 683b6d81396a6515281f0575f9761efc50d538e8 /src/runtime | |
parent | bb4a79b1667eaf9bdb30853c595e6d22d2589f82 (diff) | |
download | ComputeLibrary-34702479adcf3559e8ebe27915179af509b070d2.tar.gz |
COMPMID-417 Checking CL non uniform support at runtime.
What have been done in the ticket are:
1. Add support to check whether cl-non-unform-workgroup is supported at
runtime
2. Add helper function to check the CL version at runtime
3. Add boolen to check whether CLSecheduler's init has been called.
Change-Id: I6e6df8eb5cebfac7229aa406242bb183477fd191
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80265
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/runtime')
-rw-r--r-- | src/runtime/CL/CLScheduler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/runtime/CL/CLScheduler.cpp b/src/runtime/CL/CLScheduler.cpp index fe25ce534c..f413f626eb 100644 --- a/src/runtime/CL/CLScheduler.cpp +++ b/src/runtime/CL/CLScheduler.cpp @@ -28,7 +28,7 @@ using namespace arm_compute; CLScheduler::CLScheduler() - : _context(), _queue(), _target(GPUTarget::MIDGARD) + : _context(), _queue(), _target(GPUTarget::MIDGARD), _is_initialised(false) { } @@ -40,6 +40,10 @@ CLScheduler &CLScheduler::get() void CLScheduler::enqueue(ICLKernel &kernel, bool flush) { + ARM_COMPUTE_ERROR_ON_MSG(!_is_initialised, + "The CLScheduler is not initialised yet! Please call the CLScheduler::get().default_init(), \ + or CLScheduler::get()::init() and CLKernelLibrary::get()::init() function before running functions!"); + kernel.run(kernel.window(), _queue); if(flush) |