File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -75,20 +75,9 @@ def is_master_rank() -> bool:
7575
7676
7777def is_symm_mem_tensor (t : Tensor , process_group_name : str | None = None ) -> bool :
78- if not isinstance (t , Tensor ) or not dist .is_initialized ():
79- return False
80-
81- assert process_group_name is not None
82- try :
83- hdl = symm_mem .rendezvous (
84- t ,
85- group = process_group_name , # pyrefly: ignore[bad-argument-type]
86- )
87- return hdl is not None
88- except RuntimeError :
89- # PyTorch right now throws a RuntimeError if the tensor passed
90- # to rendezvious is not from symm-mem
78+ if not isinstance (t , Tensor ):
9179 return False
80+ return symm_mem .is_symm_mem_tensor (t )
9281
9382
9483def get_signal_pad_ptrs_dev (t : Tensor , process_group_name : str | None = None ) -> int :
You can’t perform that action at this time.
0 commit comments