28 #ifndef SPLA_CL_PROGRAM_CACHE_HPP
29 #define SPLA_CL_PROGRAM_CACHE_HPP
34 #include <robin_hood.hpp>
51 void add_program(
const std::shared_ptr<CLProgram>& program);
52 std::shared_ptr<CLProgram>
get_program(
const std::string& source);
55 robin_hood::unordered_flat_map<std::string, std::shared_ptr<CLProgram>> m_programs;
Runtime cache for compiled opencl programs.
Definition: cl_program_cache.hpp:49
std::shared_ptr< CLProgram > get_program(const std::string &source)
Definition: cl_program_cache.cpp:36
void add_program(const std::shared_ptr< CLProgram > &program)
Definition: cl_program_cache.cpp:32
Definition: algorithm.hpp:37