flashinfer.comm.mnnvl.MnnvlMemory¶
- class flashinfer.comm.mnnvl.MnnvlMemory(mapping: Mapping, size: int)¶
-
Methods
__init__(mapping, size)as_torch_strided_tensor(dtype)close_mnnvl_memory(ptr)get_allocation_granularity(dev_id)Return the recommended granularity of both FABRIC and POSIX file descriptor allocations, so an allocation keeps its size when it falls back from one handle type to the other.
get_allocation_prop(dev_id, handle_type)get_comm(mapping)initialize()new_mnnvl_memory_address(mapping, size)open_mnnvl_memory(mapping, size)set_comm_from_config(mapping[, config])support_nvlink([need_all_up])supports_mnnvl()uses_fabric_handles(comm, dev_id)Return True if MNNVL memory shared over
commstarts with FABRIC handles.Attributes
address_refcntallocated_mapallocation_granularitycommconfigcurrent_mem_offsetcurrent_rank_stridecurrent_start_addressdev_idfabric_handlesTrue if the allocation is shared through FABRIC handles, False for POSIX file descriptors.
fabric_page_sizeinitializedlocal_mem_handleThis rank's
CUmemGenericAllocationHandlebacking the allocation.mapped