Repository navigation
Locate partition chares with the array map, not lastKnown - #51
Open
AdvaitTahilyani wants to merge 1 commit into
Open
AdvaitTahilyani wants to merge 1 commit into
AdvaitTahilyani wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partition chares are now located with the array map's
procNum()instead oflastKnown()/homePe(). Squash of da2db4b and 8a1961d fromscale-gpudirect.On Reconverse-based Charm++ (
recharmand branches off it), arrays without an index compressor have a hashed home (64-bit object ids, charm #4015). The partitions are such arrays, solastKnown()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 onrate-aware-gpu-lbit sent in-process pointers to another process (index op: device buffer from another process). With 4 processes onrecharmit 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
PartitionMapputs them (chare_home_pe, #49) and never migrate, soprocNum()is exact. On classic netlrts/OFI buildshomePe()is the map'sprocNum(), so nothing changes there.src/no longer callslastKnownorhomePe.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-lbtrees, which carry these same changes.🤖 Generated with Claude Code