1 #ifndef _VIENNACL_COORDINATE_MATRIX_KERNELS_HPP_
2 #define _VIENNACL_COORDINATE_MATRIX_KERNELS_HPP_
16 template<
class TYPE,
unsigned int alignment>
17 struct coordinate_matrix;
24 static std::string program_name()
26 return "f_coordinate_matrix_128";
31 static std::map<cl_context, bool> init_done;
33 if (!init_done[context_.
handle()])
37 std::string prog_name = program_name();
38 #ifdef VIENNACL_BUILD_INFO
39 std::cout <<
"Creating program " << prog_name << std::endl;
44 init_done[context_.
handle()] =
true;
52 static std::string program_name()
54 return "f_coordinate_matrix_1";
59 static std::map<cl_context, bool> init_done;
61 if (!init_done[context_.
handle()])
65 std::string prog_name = program_name();
66 #ifdef VIENNACL_BUILD_INFO
67 std::cout <<
"Creating program " << prog_name << std::endl;
72 init_done[context_.
handle()] =
true;
83 static std::string program_name()
85 return "d_coordinate_matrix_128";
90 static std::map<cl_context, bool> init_done;
92 if (!init_done[context_.
handle()])
97 std::string prog_name = program_name();
98 #ifdef VIENNACL_BUILD_INFO
99 std::cout <<
"Creating program " << prog_name << std::endl;
104 init_done[context_.
handle()] =
true;
112 static std::string program_name()
114 return "d_coordinate_matrix_1";
119 static std::map<cl_context, bool> init_done;
121 if (!init_done[context_.
handle()])
126 std::string prog_name = program_name();
127 #ifdef VIENNACL_BUILD_INFO
128 std::cout <<
"Creating program " << prog_name << std::endl;
133 init_done[context_.
handle()] =
true;