include/ck_tile/host/kernel_launch.hpp Source File#
kernel_launch.hpp
Go to the documentation of this file.
48 * this is the function to launch arbitrary number of kernels with optional timer(selected by stream_config)
51 * the simplest way is pass in a lambda function, with "[=](const stream_config& s){ call_your_kernel_here() }"
60 * if you use ck_tile kernel, or similiar to this style (structure with "static __device__ operator()(...){}")
61 * you can pass your kernel to ck_tile::make_kernel(), which will create a anonymous functor for you,
83 for(int i = 0; i < s.cold_niters_; i++) { (callables(s),...); } HIP_CHECK_ERROR(hipGetLastError());
95 for(int i = 0; i < s.cold_niters_; i++) { (callables(s),...); } HIP_CHECK_ERROR(hipGetLastError());
Definition: cluster_descriptor.hpp:13
CK_TILE_HOST auto make_kernel(KernelImpl, dim3 grid_dim, dim3 block_dim, std::size_t lds_byte, Args... args)
Definition: kernel_launch.hpp:35
CK_TILE_HOST float launch_kernel(const stream_config &s, Callables... callables)
Definition: kernel_launch.hpp:72
Definition: timer.hpp:52
Definition: timer.hpp:15
Definition: stream_config.hpp:26