aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-04-17 11:45:10 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:37 +0000
commitecb1c62635b04600de0d04e8fe054283847449a0 (patch)
tree6bcb9db1edbc22b4606132b38424ce6533addca8 /src
parent56e8e8627e5c6912a482a68ec4d65051a5ff4ee8 (diff)
downloadComputeLibrary-ecb1c62635b04600de0d04e8fe054283847449a0.tar.gz
COMPMID-959: Fixed order of init/destruction of CLSymbols / CLKernelLibrary
Change-Id: I6871c28db69e1580c2ece73a9294742586db81f0 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/127954 Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/CL/CLKernelLibrary.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp
index 4760a1739e..a7b39c20e2 100644
--- a/src/core/CL/CLKernelLibrary.cpp
+++ b/src/core/CL/CLKernelLibrary.cpp
@@ -699,6 +699,7 @@ const std::map<std::string, std::string> CLKernelLibrary::_program_source_map =
CLKernelLibrary::CLKernelLibrary()
: _context(), _device(), _kernel_path("."), _programs_map(), _built_programs_map()
{
+ opencl_is_available(); // Make sure the OpenCL symbols are initialised *before* the CLKernelLibrary is built
}
CLKernelLibrary &CLKernelLibrary::get()