aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/CLKernelLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r--src/core/CL/CLKernelLibrary.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp
index 45149c29b8..d815ac1afc 100644
--- a/src/core/CL/CLKernelLibrary.cpp
+++ b/src/core/CL/CLKernelLibrary.cpp
@@ -713,7 +713,6 @@ Kernel CLKernelLibrary::create_kernel(const std::string &kernel_name, const Stri
{
ARM_COMPUTE_ERROR("Kernel %s not found in the CLKernelLibrary", kernel_name.c_str());
}
-
std::string concat_str;
if(fp16_support(_device))
@@ -721,13 +720,13 @@ Kernel CLKernelLibrary::create_kernel(const std::string &kernel_name, const Stri
concat_str += " -DARM_COMPUTE_OPENCL_FP16_ENABLED=1 ";
}
- if(non_uniform_workgroup_support(_device))
+ if(get_cl_version(_device) == CLVersion::CL20)
{
- concat_str += " -cl-arm-non-uniform-work-group-size ";
+ concat_str += " -cl-std=CL2.0 ";
}
- else if(get_cl_version(_device) == CLVersion::CL20)
+ else if(non_uniform_workgroup_support(_device))
{
- concat_str += " -cl-std=CL2.0 ";
+ concat_str += " -cl-arm-non-uniform-work-group-size ";
}
else
{