You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
heap_bases (triton.PointerType): Array containing the heap base addresses for all ranks.
1549
1550
mask (Block of triton.int1, optional): If mask[idx] is false, do not load from the translated src_ptr[idx] and do not store to dst_ptr[idx]. Defaults to None.
1550
1551
1552
+
Returns:
1553
+
None
1554
+
"""
1555
+
1556
+
trap_if((cur_rank!=from_rank) and (cur_rank!=to_rank))
Copies data from the specified rank's memory to the current rank's local memory.
1583
+
1584
+
This function performs a memory read operation by translating the from_ptr
1585
+
from the current rank's address space to the from_rank's address space, loading data
1586
+
from the from_rank memory location, and storing it to the local to_ptr.
1587
+
If the from_rank is the same as the current rank, this function performs a local copy operation.
1588
+
1589
+
Args:
1590
+
from_ptr (triton.PointerType, or block of dtype=triton.PointerType): Pointer in the current rank's address space that will be translated to the from_rank's address space. Must be the current rank where the pointer is local.
1591
+
to_ptr (triton.PointerType, or block of dtype=triton.PointerType): Pointer in the current rank's local memory where the data will be stored.
1592
+
from_rank (int): The from_rank ID from which to read the data.
1593
+
to_rank (int): The current rank ID where the data will be stored.
1594
+
heap_bases (triton.PointerType): Array containing the heap base addresses for all ranks.
1595
+
mask (Block of triton.int1, optional): If mask[idx] is false, do not load the data at address from_ptr[idx] and do not store to to_ptr[idx]. Defaults to None.
0 commit comments