20 typename ComputeDataType,
24 typename AMmaTileDesc,
25 typename BMmaTileDesc,
26 index_t ABlockTransferSrcScalarPerVector,
27 index_t BBlockTransferSrcScalarPerVector,
43 typename ComputeDataType,
47 typename AMmaTileDesc,
48 typename BMmaTileDesc,
49 index_t ABlockTransferSrcScalarPerVector,
50 index_t BBlockTransferSrcScalarPerVector,
71 ABlockTransferSrcScalarPerVector,
72 BBlockTransferSrcScalarPerVector,
90 ABlockTransferSrcScalarPerVector,
91 BBlockTransferSrcScalarPerVector,
111 ABlockTransferSrcScalarPerVector,
112 BBlockTransferSrcScalarPerVector,
156 template <
typename TileDesc_M0_M1_M2_K>
167 TileDesc_M0_M1_M2_K{},
190 template <
typename Stage>
200 constexpr auto staged_num_ds_read_inst_a =
204 constexpr auto staged_num_mfma_per_ds_read_a =
207 if constexpr(stage.value == 0)
209 constexpr auto staged_num_buffer_load_b_per_ds_read_a =
211 constexpr auto staged_num_mfma_per_buffer_load_b =
217 static_for<0, staged_num_buffer_load_b_per_ds_read_a - 1, 1>{}([&](
auto ibuf_inst) {
219 __builtin_amdgcn_sched_group_barrier(
220 0x008, staged_num_mfma_per_buffer_load_b, 0);
221 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
224 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
225 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
226 __builtin_amdgcn_sched_group_barrier(
227 0x008, staged_num_mfma_per_buffer_load_b - 1, 0);
228 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
231 __builtin_amdgcn_sched_barrier(0);
233 else if constexpr(stage.value == 1)
235 constexpr auto staged_num_mfma_per_ds_write_a =
238 constexpr auto stage_more_mfma =
239 staged_num_mfma - (staged_num_mfma_per_ds_write_a - 1) * num_ds_write_inst_a;
243 if constexpr(i_inst.value < stage_more_mfma)
245 if(i_inst.value < staged_num_ds_read_inst_a)
247 __builtin_amdgcn_sched_group_barrier(
248 0x008, staged_num_mfma_per_ds_write_a - 1, 0);
249 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
250 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
251 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
255 __builtin_amdgcn_sched_group_barrier(
256 0x008, staged_num_mfma_per_ds_write_a, 0);
257 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
262 if(i_inst.value < staged_num_ds_read_inst_a)
264 __builtin_amdgcn_sched_group_barrier(
265 0x008, staged_num_mfma_per_ds_write_a - 2, 0);
266 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
267 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
268 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
272 __builtin_amdgcn_sched_group_barrier(
273 0x008, staged_num_mfma_per_ds_write_a - 1, 0);
274 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
279 __builtin_amdgcn_sched_barrier(0);
281 else if constexpr(stage.value == 2)
283 constexpr auto staged_num_mfma_per_buffer_load_a =
286 constexpr auto stage_more_mfma =
287 staged_num_mfma - (staged_num_mfma_per_buffer_load_a - 1) * num_buffer_load_inst_a;
291 if constexpr(i_inst.value < stage_more_mfma)
293 if(i_inst.value < staged_num_ds_read_inst_a)
295 __builtin_amdgcn_sched_group_barrier(
296 0x008, staged_num_mfma_per_buffer_load_a - 1, 0);
297 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
298 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
299 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
303 __builtin_amdgcn_sched_group_barrier(
304 0x008, staged_num_mfma_per_buffer_load_a, 0);
305 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
310 if(i_inst.value < staged_num_ds_read_inst_a)
312 __builtin_amdgcn_sched_group_barrier(
313 0x008, staged_num_mfma_per_buffer_load_a - 2, 0);
314 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
315 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
316 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
320 __builtin_amdgcn_sched_group_barrier(
321 0x008, staged_num_mfma_per_buffer_load_a - 1, 0);
322 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
327 __builtin_amdgcn_sched_barrier(0);
334 __builtin_amdgcn_sched_group_barrier(
335 0x008, staged_num_mfma_per_ds_read_a, 0);
336 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
339 __builtin_amdgcn_sched_barrier(0);
343 template <
typename Stage>
352 constexpr auto staged_num_ds_read_inst_a = num_ds_read_inst_a / MRepeat;
353 constexpr auto staged_num_mfma = num_mfma / MRepeat;
355 constexpr auto staged_num_mfma_per_ds_read_a = staged_num_mfma / staged_num_ds_read_inst_a;
357 if constexpr(stage.value == 0)
359 constexpr auto staged_num_buffer_load_b_per_ds_read_a =
360 num_buffer_load_inst_b / staged_num_ds_read_inst_a;
361 constexpr auto staged_num_mfma_per_buffer_load_b =
362 staged_num_mfma / num_buffer_load_inst_b;
369 __builtin_amdgcn_sched_group_barrier(
370 0x008, staged_num_mfma_per_buffer_load_b, 0);
371 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
374 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
375 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
376 __builtin_amdgcn_sched_group_barrier(
377 0x008, staged_num_mfma_per_buffer_load_b - 1, 0);
378 __builtin_amdgcn_sched_group_barrier(0x020, 1, 0);
381 __builtin_amdgcn_sched_barrier(0);
383 else if constexpr(stage.value == 1)
386 constexpr auto staged_num_ds_write_a_per_ds_read_a =
387 num_ds_write_inst_a / staged_num_ds_read_inst_a;
388 constexpr auto staged_num_mfma_per_ds_write_a = staged_num_mfma / num_ds_write_inst_a;
395 __builtin_amdgcn_sched_group_barrier(
396 0x008, staged_num_mfma_per_ds_write_a - 1, 0);
397 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
400 __builtin_amdgcn_sched_group_barrier(
401 0x008, staged_num_ds_write_a_per_ds_read_a, 0);
402 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
405 constexpr auto staged_num_mfma_per_ds_write_a =
408 constexpr auto stage_more_mfma =
409 staged_num_mfma - (staged_num_mfma_per_ds_write_a - 1) * num_ds_write_inst_a;
413 if constexpr(i_inst.value < stage_more_mfma)
415 if(i_inst.value < staged_num_ds_read_inst_a)
417 __builtin_amdgcn_sched_group_barrier(
418 0x008, staged_num_mfma_per_ds_write_a - 1, 0);
419 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
420 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
421 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
425 __builtin_amdgcn_sched_group_barrier(
426 0x008, staged_num_mfma_per_ds_write_a, 0);
427 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
432 if(i_inst.value < staged_num_ds_read_inst_a)
434 __builtin_amdgcn_sched_group_barrier(
435 0x008, staged_num_mfma_per_ds_write_a - 2, 0);
436 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
437 __builtin_amdgcn_sched_group_barrier(0x008, 1, 0);
438 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
442 __builtin_amdgcn_sched_group_barrier(
443 0x008, staged_num_mfma_per_ds_write_a - 1, 0);
444 __builtin_amdgcn_sched_group_barrier(0x200, 1, 0);
449 __builtin_amdgcn_sched_barrier(0);
456 __builtin_amdgcn_sched_group_barrier(
457 0x008, staged_num_mfma_per_ds_read_a, 0);
458 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
461 __builtin_amdgcn_sched_barrier(0);
471 constexpr auto staged_num_ds_read_inst_a = num_ds_read_inst_a / MRepeat;
472 constexpr auto staged_num_mfma = num_mfma / MRepeat;
474 constexpr auto staged_num_mfma_per_ds_read_a = staged_num_mfma / staged_num_ds_read_inst_a;
479 __builtin_amdgcn_sched_group_barrier(0x008, staged_num_mfma_per_ds_read_a, 0);
480 __builtin_amdgcn_sched_group_barrier(0x100, 1, 0);
483 __builtin_amdgcn_sched_barrier(0);
486 template <
bool HasMainLoop,
490 typename ABlockTransfer,
491 typename AGridBuffer,
492 typename ABlockBuffer,
493 typename ABlockTransferStep,
495 typename BBlockTransfer,
496 typename BGridBuffer,
497 typename BBlockBuffer,
498 typename BBlockTransferStep,
499 typename CThreadBuffer>
500 __device__
void Run(
const AGridDesc& a_grid_desc,
501 const ABlockDesc& a_block_desc,
502 ABlockTransfer& a_blockwise_copy,
503 const AGridBuffer& a_grid_buf,
504 ABlockBuffer& a_block_buf,
505 const ABlockTransferStep& a_block_copy_step,
506 const BGridDesc& b_grid_desc,
507 BBlockTransfer& b_blockwise_copy,
508 const BGridBuffer& b_grid_buf,
509 BBlockBuffer& b_block_buf,
510 const BBlockTransferStep& b_block_copy_step,
511 CThreadBuffer& c_thread_buf,
515 __builtin_amdgcn_sched_barrier(0);
528 b_blockwise_copy.Run(b_grid_desc,
533 b_blockwise_copy.MoveSrcSliceWindow(b_grid_desc, b_block_copy_step);
535 a_blockwise_copy.RunRead(a_grid_desc, a_grid_buf);
536 a_blockwise_copy.MoveSrcSliceWindow(a_grid_desc, a_block_copy_step);
537 __builtin_amdgcn_sched_barrier(0);
540 a_blockwise_copy.RunWrite(a_block_desc, a_block_buf.At(
I0));
543 a_blockwise_copy.RunRead(a_grid_desc, a_grid_buf);
544 a_blockwise_copy.MoveSrcSliceWindow(a_grid_desc, a_block_copy_step);
562 b_thread_dequant_bufs(
I0));
565 c_thread_buf.Clear();
567 __builtin_amdgcn_sched_barrier(0);
570 if constexpr(HasMainLoop)
575 auto LoopFunc = [&](
auto mfma_reg_buf,
auto local_read_buf) {
577 if constexpr(m0.value == 0)
579 b_blockwise_copy.Run(b_grid_desc,
583 b_thread_bufs(local_read_buf));
584 b_blockwise_copy.MoveSrcSliceWindow(b_grid_desc, b_block_copy_step);
586 else if constexpr(m0.value == 1)
588 a_blockwise_copy.RunWrite(a_block_desc, a_block_buf.At(local_read_buf));
590 else if constexpr(m0.value == 2)
592 a_blockwise_copy.RunRead(a_grid_desc, a_grid_buf);
593 a_blockwise_copy.MoveSrcSliceWindow(a_grid_desc, a_block_copy_step);
602 a_thread_vec.template AsType<ComputeDataType>()(ik) =
611 b_thread_vec.template AsType<ComputeDataType>()(ik) =
612 b_thread_dequant_bufs[mfma_reg_buf]
617 using mfma_input_type =
625 a_thread_vec.template AsType<mfma_input_type>(),
626 b_thread_vec.template AsType<mfma_input_type>(),
631 if constexpr(m0.value == MRepeat - 1)
639 a_block_buf.At(local_read_buf),
654 b_thread_bufs(local_read_buf),
657 b_thread_dequant_bufs(local_read_buf));
665 a_block_buf.At(mfma_reg_buf),
680 b_thread_bufs(mfma_reg_buf),
683 b_thread_dequant_bufs(mfma_reg_buf));
694 }
while(i < (num_loop - 2));
700 if constexpr(m0.value == 0)
702 b_blockwise_copy.Run(b_grid_desc,
708 else if constexpr(m0.value == MRepeat - 1)
710 a_blockwise_copy.RunWrite(a_block_desc, a_block_buf.At(
I1));
719 a_thread_vec.template AsType<ComputeDataType>()(ik) =
722 b_thread_vec.template AsType<ComputeDataType>()(ik) =
727 using mfma_input_type =
733 xdlops_gemm.Run(a_thread_vec.template AsType<mfma_input_type>(),
734 b_thread_vec.template AsType<mfma_input_type>(),
739 if constexpr(m0.value == MRepeat - 1)
758 b_thread_dequant_bufs(
I1));
777 b_thread_dequant_bufs(
I0));
790 a_thread_vec.template AsType<ComputeDataType>()(ik) =
793 b_thread_vec.template AsType<ComputeDataType>()(ik) =
798 using mfma_input_type =
804 xdlops_gemm.Run(a_thread_vec.template AsType<mfma_input_type>(),
805 b_thread_vec.template AsType<mfma_input_type>(),
810 if constexpr(m0.value != (MRepeat - 1))
828 b_thread_dequant_bufs(
I1));
846 a_thread_vec.template AsType<ComputeDataType>()(ik) =
849 b_thread_vec.template AsType<ComputeDataType>()(ik) =
854 using mfma_input_type =
860 xdlops_gemm.Run(a_thread_vec.template AsType<mfma_input_type>(),
861 b_thread_vec.template AsType<mfma_input_type>(),
866 if constexpr(m0.value != (MRepeat - 1))
882 b_thread_dequant_bufs(
I0));
925 Sequence<1, 2, 0, 3>,
__host__ __device__ constexpr auto integer_divide_ceil(X x, Y y)
Definition utility/math.hpp:72
__host__ __device__ constexpr auto make_static_buffer(Number< N >)
Definition static_buffer.hpp:186
__host__ __device__ constexpr auto make_pass_through_transform(const LowLength &low_length)
Definition multi_index_transform_helper.hpp:12
typename detail::StaticallyIndexedArrayImpl< T, N >::type StaticallyIndexedArray
Definition utility/statically_indexed_array.hpp:45
int32_t index_t
Definition ck.hpp:299
integral_constant< index_t, N > Number
Definition number.hpp:12
TailNumber
Definition blkgemmpipe_scheduler.hpp:31
@ Even
Definition blkgemmpipe_scheduler.hpp:34
@ Odd
Definition blkgemmpipe_scheduler.hpp:33
constexpr detail::ignore_t ignore
Definition utility/ignore.hpp:20
BlockGemmPipelineScheduler
Definition blkgemmpipe_scheduler.hpp:25
@ Intrawave
Definition blkgemmpipe_scheduler.hpp:26
__host__ __device__ constexpr auto make_naive_tensor_descriptor_packed(const Tuple< Lengths... > &lengths)
Definition tensor_descriptor_helper.hpp:101
__host__ __device__ constexpr auto make_tuple(Xs &&... xs)
Definition utility/tuple.hpp:211
__host__ __device__ constexpr auto transform_tensor_descriptor(const OldTensorDescriptor &old_tensor_desc, const NewTransforms &new_transforms, NewLowerDimensionOldVisibleIdss, NewUpperDimensionNewVisibleIdss)
Definition tensor_description/tensor_descriptor.hpp:319
__device__ void block_sync_lds()
Definition synchronization.hpp:16
__host__ __device__ constexpr auto make_unmerge_transform(const UpLengths &up_lengths, integral_constant< bool, Use24BitIntegerCalculation >=integral_constant< bool, false >{})
Definition multi_index_transform_helper.hpp:90
__host__ __device__ BlockwiseGemmXdlops_pipeline_base(Tuple4 a_origin=CalculateAThreadOriginDataIndex(), Tuple4 b_origin=CalculateBThreadOriginDataIndex())
Constructor for BlockwiseGemmXdlops_pipeline_base.
Definition blockwise_gemm_pipeline_xdlops_base.hpp:222
__host__ static __device__ constexpr auto GetCBlockDescriptor_M0_N0_M1_N1_M2_N2_N3_N4()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:280
static constexpr index_t MWaves
Definition blockwise_gemm_pipeline_xdlops_base.hpp:44
__host__ static __device__ constexpr auto GetCThreadDescriptor_M0_N0_M1_N1_M2_N2_N3_N4()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:239
static constexpr auto c_thread_desc_
Definition blockwise_gemm_pipeline_xdlops_base.hpp:378
static constexpr auto I1
Definition blockwise_gemm_pipeline_xdlops_base.hpp:37
__host__ static __device__ constexpr auto GetCThreadDescriptor_G_M0_N0_M1_N1_M2_M3_M4_N2()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:266
__host__ static __device__ constexpr auto GetCBlockDescriptor_M0_N0_M1_N1_M2_M3_M4_N2()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:294
static constexpr index_t AMmaKStride
Definition blockwise_gemm_pipeline_xdlops_base.hpp:60
static __device__ auto CalculateAThreadOriginDataIndex6D()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:136
static constexpr index_t WaveSize
Definition blockwise_gemm_pipeline_xdlops_base.hpp:46
__host__ static __device__ constexpr auto GetCThreadDescriptor_M0_N0_M1_N1_M2_M3_M4_N2()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:253
static constexpr index_t B_K1
Definition blockwise_gemm_pipeline_xdlops_base.hpp:51
ck::BlockwiseGemmXdlops_pipeline_hotloop_inst< BlockSize, MPerBlock, NPerBlock, KPerBlock, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, A_K1, B_K1, A_K1, B_K1, MRepeat, NRepeat, MPerXDL, NPerXDL, xdlops_gemm.KPerXdlops > HotLoopInstList
Definition blockwise_gemm_pipeline_xdlops_base.hpp:82
__host__ __device__ constexpr auto & GetCThreadBuffer()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:111
static constexpr auto I0
Definition blockwise_gemm_pipeline_xdlops_base.hpp:36
static __device__ auto CalculateCThreadOriginDataIndex(Number< m0 >, Number< n0 >, Number< xdlops_i >, Number< blk_i >)
Definition blockwise_gemm_pipeline_xdlops_base.hpp:160
static __device__ auto CalculateCThreadOriginDataIndex8D(Number< m0 >, Number< n0 >, Number< xdlops_i >, Number< blk_i >)
Definition blockwise_gemm_pipeline_xdlops_base.hpp:189
static constexpr index_t KRepeat
Definition blockwise_gemm_pipeline_xdlops_base.hpp:64
static constexpr AMmaTileDesc a_block_desc_m0_m1_m2_k
Definition blockwise_gemm_pipeline_xdlops_base.hpp:359
static constexpr auto I2
Definition blockwise_gemm_pipeline_xdlops_base.hpp:38
static constexpr index_t A_K1
Definition blockwise_gemm_pipeline_xdlops_base.hpp:50
static constexpr index_t BMmaKStride
Definition blockwise_gemm_pipeline_xdlops_base.hpp:61
__host__ static __device__ constexpr auto MakeCGridDescriptor_G_M0_N0_M1_N1_M2_M3_M4_N2(const CGridDesc_G_M_N &c_grid_desc_g_m_n)
Definition blockwise_gemm_pipeline_xdlops_base.hpp:341
__host__ static __device__ constexpr auto GetCBlockDescriptor_G_M0_N0_M1_N1_M2_M3_M4_N2()
Definition blockwise_gemm_pipeline_xdlops_base.hpp:307
__host__ static __device__ constexpr auto MakeCGridDescriptor_M0_N0_M1_N1_M2_M3_M4_N2(const CGridDesc_M_N &c_grid_desc_m_n)
Definition blockwise_gemm_pipeline_xdlops_base.hpp:324
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::MWaves static constexpr index_t MWaves
Definition blockwise_gemm_pipeline_xdlops_base.hpp:44
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::a_thread_desc_ static constexpr auto a_thread_desc_
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:894
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::b_thread_desc_ static constexpr auto b_thread_desc_
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:909
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::GlobalBufferNum static constexpr index_t GlobalBufferNum
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:153
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::HotloopLocalBufSwitch static constexpr index_t HotloopLocalBufSwitch
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:154
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::AThreadCopy ThreadwiseTensorSliceTransfer_v4< ADataType, ComputeDataType, decltype(a_block_desc_m0_m1_m2_k0_k1_k2), decltype(a_thread_desc_), Sequence< 1, 1, 1, 1, 1, KPack >, Sequence< 0, 1, 2, 3, 4, 5 >, 5, A_K1, A_K1 > AThreadCopy
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:897
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::EpilogueScheduler_2 static __device__ constexpr auto EpilogueScheduler_2()
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:465
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::c_thread_desc_ static constexpr auto c_thread_desc_
Definition blockwise_gemm_pipeline_xdlops_base.hpp:378
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::Base BlockwiseGemmXdlops_pipeline_base< BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack > Base
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:102
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::a_block_desc_m0_m1_m2_k0_k1_k2 static constexpr auto a_block_desc_m0_m1_m2_k0_k1_k2
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:177
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::b_element_op const PassThrough b_element_op
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:929
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::b_block_desc_n0_n1_k0_k1 static constexpr BTileDesc b_block_desc_n0_n1_k0_k1
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:912
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::Run __device__ void Run(const AGridDesc &a_grid_desc, const ABlockDesc &a_block_desc, ABlockTransfer &a_blockwise_copy, const AGridBuffer &a_grid_buf, ABlockBuffer &a_block_buf, const ABlockTransferStep &a_block_copy_step, const BGridDesc &b_grid_desc, BBlockTransfer &b_blockwise_copy, const BGridBuffer &b_grid_buf, BBlockBuffer &b_block_buf, const BBlockTransferStep &b_block_copy_step, CThreadBuffer &c_thread_buf, index_t num_loop) const
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:500
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::a_thread_copy_ AThreadCopy a_thread_copy_
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:907
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::I1 static constexpr auto I1
Definition blockwise_gemm_pipeline_xdlops_base.hpp:37
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::PrefetchStages static constexpr index_t PrefetchStages
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:151
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::BThreadDequantCopy ThreadwiseTensorSliceTransfer_StaticToStatic< BDataType, ComputeDataType, decltype(b_block_desc_n0_n1_k0_k1), decltype(b_block_desc_n0_n1_k0_k1), tensor_operation::element_wise::PassThrough, Sequence< Number< NRepeat >{}, I1, Number< KRepeat >{}, Number< KPack >{}>, Sequence< 1, 2, 0, 3 >, 3, KPack > BThreadDequantCopy
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:918
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::WaveSize static constexpr index_t WaveSize
Definition blockwise_gemm_pipeline_xdlops_base.hpp:46
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::HotLoopScheduler static __device__ constexpr auto HotLoopScheduler(Stage stage)
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:191
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::b_thread_dequant_copy_ BThreadDequantCopy b_thread_dequant_copy_
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:930
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::PrefillStages static constexpr index_t PrefillStages
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:152
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::BlockHasHotloop __host__ static __device__ constexpr bool BlockHasHotloop(index_t num_loop)
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:180
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::I0 static constexpr auto I0
Definition blockwise_gemm_pipeline_xdlops_base.hpp:36
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::PassThrough ck::tensor_operation::element_wise::PassThrough PassThrough
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:916
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::BlockLoopTailNum __host__ static __device__ constexpr TailNumber BlockLoopTailNum(index_t num_loop)
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:185
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::EpilogueScheduler_1 static __device__ constexpr auto EpilogueScheduler_1(Stage stage)
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:344
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::KRepeat static constexpr index_t KRepeat
Definition blockwise_gemm_pipeline_xdlops_base.hpp:64
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::a_block_desc_m0_m1_m2_k static constexpr AMmaTileDesc a_block_desc_m0_m1_m2_k
Definition blockwise_gemm_pipeline_xdlops_base.hpp:359
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::I2 static constexpr auto I2
Definition blockwise_gemm_pipeline_xdlops_base.hpp:38
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::MakeAGemmMmaTileDescriptor __host__ static __device__ constexpr auto MakeAGemmMmaTileDescriptor(const TileDesc_M0_M1_M2_K &)
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:157
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::A_K1 static constexpr index_t A_K1
Definition blockwise_gemm_pipeline_xdlops_base.hpp:50
ck::BlockwiseGemmXdlops_pipeline_bpreshuffle_bdequant_v3< BlockGemmPipelineScheduler::Intrawave, BlockSize, ADataType, BDataType, ComputeDataType, AccDataType, ATileDesc, BTileDesc, AMmaTileDesc, BMmaTileDesc, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, MPerBlock, NPerBlock, KPerBlock, MPerXDL, NPerXDL, MRepeat, NRepeat, KPack >::xdlops_gemm static constexpr auto xdlops_gemm
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:148
Definition blockwise_gemm_pipeline_xdlops_b_preshuffle_dequant_v3.hpp:37
ck::BlockwiseGemmXdlops_pipeline_hotloop_inst< BlockSize, MPerBlock, NPerBlock, KPerBlock, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, A_K1, B_K1, A_K1, B_K1, MRepeat, NRepeat, MPerXDL, NPerXDL, xdlops_gemm.KPerXdlops >::A_LDS_Read_Inst_Num static constexpr index_t A_LDS_Read_Inst_Num
Definition blockwise_gemm_pipeline_xdlops.hpp:49
ck::BlockwiseGemmXdlops_pipeline_hotloop_inst< BlockSize, MPerBlock, NPerBlock, KPerBlock, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, A_K1, B_K1, A_K1, B_K1, MRepeat, NRepeat, MPerXDL, NPerXDL, xdlops_gemm.KPerXdlops >::A_LDS_Write_Inst_Num static constexpr index_t A_LDS_Write_Inst_Num
Definition blockwise_gemm_pipeline_xdlops.hpp:44
ck::BlockwiseGemmXdlops_pipeline_hotloop_inst< BlockSize, MPerBlock, NPerBlock, KPerBlock, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, A_K1, B_K1, A_K1, B_K1, MRepeat, NRepeat, MPerXDL, NPerXDL, xdlops_gemm.KPerXdlops >::C_MFMA_Inst_Num static constexpr index_t C_MFMA_Inst_Num
Definition blockwise_gemm_pipeline_xdlops.hpp:54
ck::BlockwiseGemmXdlops_pipeline_hotloop_inst< BlockSize, MPerBlock, NPerBlock, KPerBlock, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, A_K1, B_K1, A_K1, B_K1, MRepeat, NRepeat, MPerXDL, NPerXDL, xdlops_gemm.KPerXdlops >::A_Buffer_Load_Inst_Num static constexpr index_t A_Buffer_Load_Inst_Num
Definition blockwise_gemm_pipeline_xdlops.hpp:39
ck::BlockwiseGemmXdlops_pipeline_hotloop_inst< BlockSize, MPerBlock, NPerBlock, KPerBlock, ABlockTransferSrcScalarPerVector, BBlockTransferSrcScalarPerVector, A_K1, B_K1, A_K1, B_K1, MRepeat, NRepeat, MPerXDL, NPerXDL, xdlops_gemm.KPerXdlops >::B_Buffer_Load_Inst_Num static constexpr index_t B_Buffer_Load_Inst_Num
Definition blockwise_gemm_pipeline_xdlops.hpp:41
Definition utility/sequence.hpp:43
Threadwise data transfer.
Definition threadwise_tensor_slice_transfer.hpp:1720
Definition threadwise_tensor_slice_transfer.hpp:1260
Definition xdlops_gemm.hpp:1821
Definition functional2.hpp:33
Definition tensor_operation/gpu/element/unary_element_wise_operation.hpp:340
Definition dtype_vector.hpp:10