aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/ClContextControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/cl/ClContextControl.cpp')
-rw-r--r--src/backends/cl/ClContextControl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/cl/ClContextControl.cpp b/src/backends/cl/ClContextControl.cpp
index 2ffece4ac3..7013b8a4f8 100644
--- a/src/backends/cl/ClContextControl.cpp
+++ b/src/backends/cl/ClContextControl.cpp
@@ -104,7 +104,7 @@ void ClContextControl::DoLoadOpenClRuntime(bool useTunedParameters)
cl::Context context;
cl::CommandQueue commandQueue;
- if (arm_compute::CLScheduler::get().context()() != NULL)
+ if (arm_compute::CLScheduler::get().is_initialised() && arm_compute::CLScheduler::get().context()() != NULL)
{
// Wait for all queued CL requests to finish before reinitialising it.
arm_compute::CLScheduler::get().sync();