Skip to content

Locate partition chares with the array map, not lastKnown - #51

Open
AdvaitTahilyani wants to merge 1 commit into
scale/33-solve-16gpufrom
scale/34-array-map-locations
Open

AdvaitTahilyani wants to merge 1 commit into
scale/33-solve-16gpufrom
scale/34-array-map-locations

Conversation

@AdvaitTahilyani

Copy link
Copy Markdown

Partition chares are now located with the array map's procNum() instead of lastKnown()/homePe(). Squash of da2db4b and 8a1961d from scale-gpudirect.

On Reconverse-based Charm++ (recharm and branches off it), arrays without an index compressor have a hashed home (64-bit object ids, charm #4015). The partitions are such arrays, so lastKnown() for a chare this PE hasn't heard from returns a hashed PE, not the PE where the chare lives. charmnumeric's "same process / same host" tests then go wrong. With 2 processes on rate-aware-gpu-lb it sent in-process pointers to another process (index op: device buffer from another process). With 4 processes on recharm it tried CUDA IPC on a buffer it couldn't map (CUDA IPC: cannot map a GPU buffer of process 0). Upload tiles were staged on the hashed home rather than on their chare, which costs an extra fetch.

Partitions are inserted where PartitionMap puts them (chare_home_pe, #49) and never migrate, so procNum() is exact. On classic netlrts/OFI builds homePe() is the map's procNum(), so nothing changes there. src/ no longer calls lastKnown or homePe.

Validated on this head: nc build, full CPU regress at +p1 and +p2 (netlrts), and a CUDA compile (ofi-gcc-cuda). No GPU run on this head. The Reconverse GPU evidence, both the errors above and runs passing with the fix, comes from the older gpudirect/rcv-lb trees, which carry these same changes.

🤖 Generated with Claude Code

On recharm (64-bit object ids, charm #4015) an array without a compressor,
like the dynamically inserted partitions, has a hashed directory home, so
lastKnown() of an index this PE has not heard from names a PE where the
chare does not live. The locality tests built on it (device pointer, CUDA
IPC or staged send; index, mask, reshape and sort payloads) then passed
in-process pointers to other processes: "index op: device buffer from
another process" with two processes. Upload staging used homePe() and so
staged tiles away from their chares. Partitions never migrate and are
inserted where the map puts them, so procNum() is their PE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant