Skip to content

vllm.distributed.ec_transfer.ec_connector.cpu.data.moriio

MoRI-IO data-plane transport for ECCPUConnector.

MoRI-IO has no NIXL-style notification that rides on the transfer, so a finished READ is signalled to the producer over a ZMQ PUSH/PULL pair, which the producer drains through get_new_notifs().

Classes:

MoRIIODataTransport

Bases: DataTransport

Adapts a MoRI-IO IOEngine to the DataTransport interface.

Runs on the scheduler thread only. MoRI-IO holds a transfer's status and session by raw pointer, so a released in-flight handle is parked until the transfer finishes.

Methods:

_settle_parked()

Wait up to the settle budget for parked READs; True if none remain.

deregister()

Release the transport.

MoRI-IO cannot abort a READ and deregister_memory() does not wait for one, so the region is only deregistered once no released transfer still targets it. If a READ is still in flight after the settle period, the transport keeps the registration and moves itself, with its parked handles, engine and region, into _UNSETTLED until the process exits, and region_in_use() tells the owner not to unmap the region.

_merge_segments(local_offsets, remote_offsets, block_size)

Coalesce block pairs that are contiguous on both sides.