1 #ifndef _VIENNACL_SPAI_KERNELS_HPP_
2 #define _VIENNACL_SPAI_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()])
44 std::string prog_name = program_name();
45 #ifdef VIENNACL_BUILD_INFO
46 std::cout <<
"Creating program " << prog_name << std::endl;
58 init_done[context_.
handle()] =
true;
67 struct spai<double, 1>
69 static std::string program_name()
76 static std::map<cl_context, bool> init_done;
78 if (!init_done[context_.
handle()])
90 std::string prog_name = program_name();
91 #ifdef VIENNACL_BUILD_INFO
92 std::cout <<
"Creating program " << prog_name << std::endl;
104 init_done[context_.
handle()] =
true;