1 #ifndef _VIENNACL_COMPRESSED_MATRIX_KERNELS_HPP_
2 #define _VIENNACL_COMPRESSED_MATRIX_KERNELS_HPP_
16 template<
class TYPE,
unsigned int alignment>
24 static std::string program_name()
26 return "f_compressed_matrix_4";
31 static std::map<cl_context, bool> init_done;
33 if (!init_done[context_.
handle()])
45 std::string prog_name = program_name();
46 #ifdef VIENNACL_BUILD_INFO
47 std::cout <<
"Creating program " << prog_name << std::endl;
60 init_done[context_.
handle()] =
true;
68 static std::string program_name()
70 return "f_compressed_matrix_1";
75 static std::map<cl_context, bool> init_done;
77 if (!init_done[context_.
handle()])
89 std::string prog_name = program_name();
90 #ifdef VIENNACL_BUILD_INFO
91 std::cout <<
"Creating program " << prog_name << std::endl;
104 init_done[context_.
handle()] =
true;
112 static std::string program_name()
114 return "f_compressed_matrix_8";
119 static std::map<cl_context, bool> init_done;
121 if (!init_done[context_.
handle()])
133 std::string prog_name = program_name();
134 #ifdef VIENNACL_BUILD_INFO
135 std::cout <<
"Creating program " << prog_name << std::endl;
148 init_done[context_.
handle()] =
true;
159 static std::string program_name()
161 return "d_compressed_matrix_4";
166 static std::map<cl_context, bool> init_done;
168 if (!init_done[context_.
handle()])
181 std::string prog_name = program_name();
182 #ifdef VIENNACL_BUILD_INFO
183 std::cout <<
"Creating program " << prog_name << std::endl;
196 init_done[context_.
handle()] =
true;
204 static std::string program_name()
206 return "d_compressed_matrix_1";
211 static std::map<cl_context, bool> init_done;
213 if (!init_done[context_.
handle()])
226 std::string prog_name = program_name();
227 #ifdef VIENNACL_BUILD_INFO
228 std::cout <<
"Creating program " << prog_name << std::endl;
241 init_done[context_.
handle()] =
true;
249 static std::string program_name()
251 return "d_compressed_matrix_8";
256 static std::map<cl_context, bool> init_done;
258 if (!init_done[context_.
handle()])
271 std::string prog_name = program_name();
272 #ifdef VIENNACL_BUILD_INFO
273 std::cout <<
"Creating program " << prog_name << std::endl;
286 init_done[context_.
handle()] =
true;