Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Stateful Destructive Device Slicing#2726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
hunhoffe wants to merge12 commits intomain
base:main
Choose a base branch
Loading
fromdevice-slicer
Draft

Conversation

@hunhoffe
Copy link
Collaborator

@hunhoffehunhoffe commentedNov 21, 2025
edited
Loading

This PR implements stateful destructive device slicing, allowing devices to be partitioned into non-overlapping views. Device classes are now stored as class references rather than instances in the configuration, and slicing operations claim tiles to prevent double allocation.

  • IntroducesDeviceView andDeviceLike classes to support device slicing with tile claiming
  • Modifies device configuration to store device classes instead of instances
  • UpdatesSequentialPlacer to remove thecores_per_col parameter and use device slicing instead

This feature, together with a statefulSequentialPlacer, is likely enough to use the placer across designs so that placed designs could be combined. That thought is for a future PR though.

Thanks to copilot for the assist in the summary writing!

@hunhoffehunhoffe changed the title[WIP] Device Slicer[WIP] Stateful Destructive Device SlicingNov 21, 2025
@hunhoffehunhoffe marked this pull request as draftNovember 21, 2025 20:12
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This PR implements stateful destructive device slicing, allowing devices to be partitioned into non-overlapping views. Device classes are now stored as class references rather than instances in the configuration, and slicing operations claim tiles to prevent double allocation.

  • IntroducesDeviceView andDeviceLike classes to support device slicing with tile claiming
  • Modifies device configuration to store device classes instead of instances
  • UpdatesSequentialPlacer to remove thecores_per_col parameter and use device slicing instead

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
test/python/set_current_device.pyTests device class-based configuration and multiple device type handling
test/python/placer_tests.pyUpdates tests to use device slicing instead of cores_per_col parameter
test/python/device_slicing.pyAdds comprehensive test coverage for device slicing functionality
python/iron/program.pyRemoves device instance recreation logic
python/iron/placers.pyRemoves cores_per_col parameter and fixes device.cols reference
python/iron/hostruntime/config.pyChanges device storage from instances to classes
python/iron/device/device.pyImplements DeviceLike, DeviceView, and Device slicing with tile claiming

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

hunhoffeand others added5 commitsNovember 21, 2025 17:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@stephenneuendorfferstephenneuendorfferAwaiting requested review from stephenneuendorfferstephenneuendorffer is a code owner

@jgmelberjgmelberAwaiting requested review from jgmelberjgmelber is a code owner

@fifieldfifieldAwaiting requested review from fifieldfifield is a code owner

@jackl-xilinxjackl-xilinxAwaiting requested review from jackl-xilinxjackl-xilinx is a code owner

@AndraBiscaAndraBiscaAwaiting requested review from AndraBiscaAndraBisca is a code owner

@andrejandrejAwaiting requested review from andrejandrej is a code owner

@pvasireddy-amdpvasireddy-amdAwaiting requested review from pvasireddy-amdpvasireddy-amd is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@hunhoffe

[8]ページ先頭

©2009-2025 Movatter.jp