1 #ifndef _VIENNACL_VECTOR_KERNELS_HPP_
2 #define _VIENNACL_VECTOR_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()])
66 std::string prog_name = program_name();
67 #ifdef VIENNACL_BUILD_INFO
68 std::cout <<
"Creating program " << prog_name << std::endl;
102 init_done[context_.
handle()] =
true;
110 static std::string program_name()
117 static std::map<cl_context, bool> init_done;
119 if (!init_done[context_.
handle()])
152 std::string prog_name = program_name();
153 #ifdef VIENNACL_BUILD_INFO
154 std::cout <<
"Creating program " << prog_name << std::endl;
188 init_done[context_.
handle()] =
true;
196 static std::string program_name()
198 return "f_vector_16";
203 static std::map<cl_context, bool> init_done;
205 if (!init_done[context_.
handle()])
238 std::string prog_name = program_name();
239 #ifdef VIENNACL_BUILD_INFO
240 std::cout <<
"Creating program " << prog_name << std::endl;
274 init_done[context_.
handle()] =
true;
285 static std::string program_name()
292 static std::map<cl_context, bool> init_done;
294 if (!init_done[context_.
handle()])
328 std::string prog_name = program_name();
329 #ifdef VIENNACL_BUILD_INFO
330 std::cout <<
"Creating program " << prog_name << std::endl;
364 init_done[context_.
handle()] =
true;
372 static std::string program_name()
379 static std::map<cl_context, bool> init_done;
381 if (!init_done[context_.
handle()])
415 std::string prog_name = program_name();
416 #ifdef VIENNACL_BUILD_INFO
417 std::cout <<
"Creating program " << prog_name << std::endl;
451 init_done[context_.
handle()] =
true;
459 static std::string program_name()
461 return "d_vector_16";
466 static std::map<cl_context, bool> init_done;
468 if (!init_done[context_.
handle()])
502 std::string prog_name = program_name();
503 #ifdef VIENNACL_BUILD_INFO
504 std::cout <<
"Creating program " << prog_name << std::endl;
538 init_done[context_.
handle()] =
true;