| 150 | |
| 151 | template <typename Kernel, typename... T> |
| 152 | void launch_kernel ( |
| 153 | Kernel K, |
| 154 | T ...args |
| 155 | ) |
| 156 | /*! |
| 157 | ensures |
| 158 | - launches the given kernel K(args...). The point of this function is to |
| 159 | automatically set the kernel launch parameters to something reasonable |
| 160 | based on the properties of the kernel and the current GPU card. |
| 161 | !*/ |
| 162 | { |
| 163 | int num_blocks, num_threads; |
| 164 | CHECK_CUDA(cudaOccupancyMaxPotentialBlockSize(&num_blocks,&num_threads,K)); |
| 165 | K<<<num_blocks,num_threads>>>(args...); |
| 166 | } |
| 167 | |
| 168 | template <typename Kernel, typename... T> |
| 169 | void launch_kernel ( |
nothing calls this directly
no test coverage detected