1 #ifndef _VIENNACL_SCALAR_KERNELS_HPP_
2 #define _VIENNACL_SCALAR_KERNELS_HPP_
16 template<
class TYPE,
unsigned int alignment>
24 static std::string program_name()
31 static std::map<cl_context, bool> init_done;
33 if (!init_done[context_.
handle()])
52 std::string prog_name = program_name();
53 #ifdef VIENNACL_BUILD_INFO
54 std::cout <<
"Creating program " << prog_name << std::endl;
74 init_done[context_.
handle()] =
true;
85 static std::string program_name()
92 static std::map<cl_context, bool> init_done;
94 if (!init_done[context_.
handle()])
114 std::string prog_name = program_name();
115 #ifdef VIENNACL_BUILD_INFO
116 std::cout <<
"Creating program " << prog_name << std::endl;
136 init_done[context_.
handle()] =
true;