Skip to content

Commit fd1d506

Browse files
committed
cute dsl
1 parent 91e6140 commit fd1d506

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/gemm/test_cute_dsl_gemm_allreduce_two_shot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def create_mc_tensor(torch_tensor_cpu, dtype, leading_dim, is_dynamic_layout=Tru
4343
torch_symm_tensor.copy_(torch_tensor_cpu)
4444
symm = symm_mem.rendezvous(torch_symm_tensor, group=dist.group.WORLD.group_name)
4545
mc_ptr = symm.multicast_ptr
46+
47+
if not mc_ptr:
48+
raise ValueError("Multicast support is not available")
49+
4650
# create MC tensor memref
4751
cute_tensor_mc = from_dlpack(
4852
cutlass_torch.as_tensor(mc_ptr, torch_tensor_cpu.shape, torch_tensor_cpu.dtype),

0 commit comments

Comments
 (0)