aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/CLKernelLibrary.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2017-06-20 15:00:14 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commitd7e8281d8ad7e0d0fdc0d180af64a751c4c3f175 (patch)
treef9f9137f7e0de5d948f1bd438c31bece29c2bf70 /src/core/CL/CLKernelLibrary.cpp
parent13edbff0820c3b41e7dd766db5a9d6ff65fcda2a (diff)
downloadComputeLibrary-d7e8281d8ad7e0d0fdc0d180af64a751c4c3f175.tar.gz
COMPMID-408 Create OpenCL complex math functions for 8 bit fixed point arithmetic.
Logarithm, inverse square root, exponential and multiplication for 8 bit fixed point arithmetic in OPenCL. Change-Id: Ib976da7057242967c940df28ceebf39bc3ea3811 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78273 Reviewed-by: Moritz Pflanzer <moritz.pflanzer@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.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp
index 6cf5ce2564..4a92bac23c 100644
--- a/src/core/CL/CLKernelLibrary.cpp
+++ b/src/core/CL/CLKernelLibrary.cpp
@@ -486,7 +486,7 @@ const std::map<std::string, std::string> CLKernelLibrary::_program_source_map =
{
"warp_perspective.cl",
#include "./cl_kernels/warp_perspective.clembed"
- }
+ },
#endif
};
@@ -602,3 +602,15 @@ std::string CLKernelLibrary::stringify_set(const StringSet &s) const
return concat_set;
}
+
+std::string CLKernelLibrary::get_program_source(const std::string &program_name)
+{
+ const auto program_source_it = _program_source_map.find(program_name);
+
+ if(program_source_it == _program_source_map.end())
+ {
+ ARM_COMPUTE_ERROR("Embedded program for %s does not exist.", program_name.c_str());
+ }
+
+ return program_source_it->second;
+}