Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/cute/tutorial/blackwell/04_mma_tma_2sm_sm100.cu
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ gemm_device(ATensor mA, // (Gemm_M, Gemm_K)
using TmemAllocator = cute::TMEM::Allocator2Sm;
TmemAllocator tmem_allocator{};

// Make sure all CTAs in Cluster are alive. 2SM mode TMEM alloc requires the leader and peer CTA have both
// been launched. We need this explicit cluster sync here to guarantee that.
cute::cluster_sync();
if (elect_one_warp) {
tmem_allocator.allocate(TmemAllocator::Sm100TmemCapacityColumns, &shared_storage.tmem_base_ptr);
}
Expand Down
3 changes: 3 additions & 0 deletions examples/cute/tutorial/blackwell/05_mma_tma_epi_sm100.cu
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ gemm_device(ATensor mA, // (Gemm_M, Gemm_K)
using TmemAllocator = cute::TMEM::Allocator2Sm;
TmemAllocator tmem_allocator{};

// Make sure all CTAs in Cluster are alive. 2SM mode TMEM alloc requires the leader and peer CTA have both
// been launched. We need this explicit cluster sync here to guarantee that.
cute::cluster_sync();
if (elect_one_warp) {
tmem_allocator.allocate(TmemAllocator::Sm100TmemCapacityColumns, &shared_storage.tmem_base_ptr);
}
Expand Down