8 #ifndef CLFKERNELSOURCES_HH_
9 #define CLFKERNELSOURCES_HH_
11 #include <OpenCLFramework/clfOpenCL.hh>
22 inline void AddSource(
const std::string fname, std::string &source,
unsigned int &blocks) {
23 clkernelmap_[fname] = source.c_str();
24 clnumblocks_[fname] = blocks;
27 std::string GetSource(std::string fname);
29 inline void AddSource(
const std::string fname,
const char *source,
unsigned int &blocks) {
30 clkernelmap_[fname] = source;
31 clnumblocks_[fname] = blocks;
35 std::map<std::string, const char *> clkernelmap_;
36 std::map<std::string, unsigned int> clnumblocks_;
void AddSource(const std::string fname, std::string &source, unsigned int &blocks)
void AddSource(const std::string fname, const char *source, unsigned int &blocks)