diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2017-10-27 11:50:06 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 6f31f8c50a3d409b1ec587efba406454b53e9452 (patch) | |
tree | b091ee680d135315f59a062ce22a172c82db18e3 /src/core/CL/CLKernelLibrary.cpp | |
parent | adaae7e453cc4cc07905daca68fa7b938555d581 (diff) | |
download | ComputeLibrary-6f31f8c50a3d409b1ec587efba406454b53e9452.tar.gz |
Allow running without cl_khr_fp16
Change-Id: I0f5396c8f32acc28914e2ff9fe953f977a3077b9
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93405
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r-- | src/core/CL/CLKernelLibrary.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp index 62ef2593e7..9e2b5bd600 100644 --- a/src/core/CL/CLKernelLibrary.cpp +++ b/src/core/CL/CLKernelLibrary.cpp @@ -596,6 +596,11 @@ Kernel CLKernelLibrary::create_kernel(const std::string &kernel_name, const Stri std::string concat_str; + if(fp16_support(_device)) + { + concat_str += " -DARM_COMPUTE_OPENCL_FP16_ENABLED=1 "; + } + if(non_uniform_workgroup_support(_device)) { concat_str += " -cl-arm-non-uniform-work-group-size "; |