Skip to content

Enable peering among all devices on the system. - #19555

Merged
AWoloszyn merged 1 commit into
iree-org:mainfrom
AWoloszyn:peering
Dec 23, 2024
Merged

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

Conversation

@AWoloszyn

Copy link
Copy Markdown
Contributor

We have to do this for models that are using
multiple devices but are not using them as a
single logical device.

We have to do this for models that are using
multiple devices but are not using them as a
single logical device.

Signed-off-by: Andrew Woloszyn <[email protected]>
@AWoloszyn
AWoloszyn requested review from benvanik and removed request for antiagainst and nithinsubbiah December 23, 2024 16:22
@AWoloszyn
AWoloszyn merged commit 1f19761 into iree-org:main Dec 23, 2024
AWoloszyn added a commit to AWoloszyn/iree that referenced this pull request Apr 7, 2025
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]>
AWoloszyn added a commit that referenced this pull request Apr 7, 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]>
AWoloszyn added a commit that referenced this pull request Dec 1, 2025
We have to do this for models that are using
multiple devices but are not using them as a
single logical device.

Signed-off-by: Andrew Woloszyn <[email protected]>
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants