Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 367 Bytes

utils.md

File metadata and controls

16 lines (13 loc) · 367 Bytes

Utils

Type conversion

const auto dst_val = mtk::wmma::utils::cast<DST_TYPE>(src_val);

Asynchronous D2S data copy

mtk::wmma::utils::cp_async::cp_async<N>(dst_ptr, src_ptr);
mtk::wmma::utils::cp_async::commit();
mtk::wmma::utils::cp_async::wait_group<i>();
mtk::wmma::utils::cp_async::wait_all();
  • N is data size in byte. (4, 8, 16)