tensor_remote_addr

Function tensor_remote_addr 

Source
pub fn tensor_remote_addr(shard_base: u64, offset_in_shard: u64) -> u64
Expand description

Absolute peer virtual address of a tensor’s first byte: the shard’s whole- file REMOTE_READ MR base plus the tensor’s ABSOLUTE in-shard offset (the safetensors data-section offset, which already includes the 8-byte size prefix + header). The client RDMA-READs [addr .. addr + len). Factored out (un-gated) so the address math is unit-testable off the RDMA path.