Skip to content

[hip] Re-enable peering for compatible devices. - #20481

Merged
AWoloszyn merged 1 commit into
iree-org:mainfrom
AWoloszyn:fix_sharding
Apr 7, 2025
Merged

AWoloszyn merged 1 commit into
iree-org:mainfrom
AWoloszyn:fix_sharding

Conversation

@AWoloszyn

Copy link
Copy Markdown
Contributor

#20114 disabled all peering any time we only have a single physical device backing a logical device. This broke our current sharded models:
#20409

Our current sharded models are not set up this way, they have multiple logical devices backed by multiple physical devices, so every hip_device has only a single physical device, and peering is never enabled at all (see
#19555) for the original change to allow this.

This change enables peering for all devices with all devices that are compatible, which should fix our sharded models. Howewver we should at some point update our sharding method to correctly use single logical devices backed by multiple physical devices.

iree-org#20114 disabled all peering
any time we only have a single physical device backing a logical
device. This broke our current sharded models:
iree-org#20409

Our current sharded models are not set up this way, they
have multiple logical devices backed by multiple physical devices,
so every hip_device has only a single physical device, and peering
is never enabled at all (see
iree-org#19555) for the original change
to allow this.

This change enables peering for all devices with all devices
that are compatible, which should fix our sharded models.
Howewver we should at some point update our sharding method
to correctly use single logical devices backed by multiple
physical devices.

Signed-off-by: Andrew Woloszyn <[email protected]>
@ScottTodd ScottTodd added the hal/hip Runtime HIP HAL backend label Apr 7, 2025
@AWoloszyn
AWoloszyn merged commit 6bf49d9 into iree-org:main Apr 7, 2025
@AWoloszyn
AWoloszyn deleted the fix_sharding branch April 8, 2025 16:06
@ScottTodd ScottTodd mentioned this pull request May 5, 2025
5 of 6 tasks
AWoloszyn added a commit that referenced this pull request Dec 1, 2025
#20114 disabled all peering any
time we only have a single physical device backing a logical device.
This broke our current sharded models:
#20409

Our current sharded models are not set up this way, they have multiple
logical devices backed by multiple physical devices, so every hip_device
has only a single physical device, and peering is never enabled at all
(see
#19555) for the original change to
allow this.

This change enables peering for all devices with all devices that are
compatible, which should fix our sharded models. Howewver we should at
some point update our sharding method to correctly use single logical
devices backed by multiple physical devices.

Signed-off-by: Andrew Woloszyn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hal/hip Runtime HIP HAL backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants