A recursive template to create the desired kernel instantiations. More...
#include <kernel_factory.hpp>
Public Member Functions | |
| template<typename... constructor_args> | |
| ptr_t< kernel > | get (int n_dim, int row_size, constructor_args &&... args) |
A recursive template to create the desired kernel instantiations.
You can think of it as a compile-time linked list, where each template contains another template with one less row size. When the row size is 1, it wraps around to config::max_row_size but with one less dimension via specialization below. The second specialization below terminates the recursion when both the row size and the dimension are 1.