diff options
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r-- | src/core/CL/CLKernelLibrary.cpp | 14 |
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; +} |