Skip to content

vllm.distributed.engram_pool.nvlink

Peer device or host memory over NVLink: every GPU maps each shard (cuMem FABRIC), so a fetch is one kernel that loads each row from its owner's memory.

Classes:

NvlinkTransport

Methods:

  • landed –

    Rows are in place: see wait.

  • shard –

    Allocate this GPU's shard and map every GPU's. Returns the shard, its

  • wait –

    Rows are in place once start returns: SMs moved them.

landed(fetch, table) staticmethod

Rows are in place: see wait.

shard(num_bytes, name)

Allocate this GPU's shard and map every GPU's. Returns the shard, its meta arrays (shard addresses) and what keeps them alive. Collective.

wait(fetch, table, out) staticmethod

Rows are in place once start returns: SMs moved them.

_gather_kernel(ids, meta, out, num_items, TABLES, K, WORDS, BLOCK)

Load [..., TABLES, K] rows from their owners into [TABLES, ..., K] rows, one 8-byte word per lane; dead ids give zeros.