Repository navigation
Implementing AMDGPU logical/physical devices and skeleton queues. - #21251
Merged
Merged
Conversation
benvanik
force-pushed
the
users/benvanik/amdgpu-device
branch
2 times, most recently
from
July 1, 2025 17:48
c48fba7 to
24798ee
Compare
benvanik
marked this pull request as ready for review
July 1, 2025 17:54
ScottTodd
approved these changes
Jul 2, 2025
A single logical device in the HAL may have multiple queues backed by multiple physical devices. Queues may either be host-side (CPU issues all queue operations from a worker thread) or device-side (GPU issues all queue operations from scheduler dispatches). Logical and physical device setup, device library loading, pool management, and routing from the top-level HAL API are the same regardless of queue implementation and it's even possible to support multiple queue types per logical device (if ganging an APU and a dGPU, for example). To start the host-side queue will be implemented in future changes and the device-side queue is present only as a placeholder for later implementation.
benvanik
force-pushed
the
users/benvanik/amdgpu-device
branch
from
July 16, 2025 16:34
bf79ec4 to
2ccf1bc
Compare
benvanik
enabled auto-merge (squash)
July 16, 2025 16:34
IanWood1
pushed a commit
to IanWood1/iree
that referenced
this pull request
Jul 18, 2025
…ee-org#21251) A single logical device in the HAL may have multiple virtual queues backed by multiple physical devices. Queues may either be host-side (CPU issues all queue operations from a worker thread) or device-side (GPU issues all queue operations from scheduler dispatches). Logical and physical device setup, device library loading, pool management, and routing from the top-level HAL API are the same regardless of queue implementation and it's even possible to support multiple queue types per logical device (if ganging an APU and a dGPU, for example). To start the host-side queue will be implemented in future changes and the device-side queue is present only as a placeholder for later implementation. There are some things I'm not too pleased with (like all the block pools floating around) but I'll be cleaning things up as I implement the queues and try to reduce how much state is shared between the physical device and its queue implementations.
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
…1251) A single logical device in the HAL may have multiple virtual queues backed by multiple physical devices. Queues may either be host-side (CPU issues all queue operations from a worker thread) or device-side (GPU issues all queue operations from scheduler dispatches). Logical and physical device setup, device library loading, pool management, and routing from the top-level HAL API are the same regardless of queue implementation and it's even possible to support multiple queue types per logical device (if ganging an APU and a dGPU, for example). To start the host-side queue will be implemented in future changes and the device-side queue is present only as a placeholder for later implementation. There are some things I'm not too pleased with (like all the block pools floating around) but I'll be cleaning things up as I implement the queues and try to reduce how much state is shared between the physical device and its queue implementations.
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.
A single logical device in the HAL may have multiple virtual queues backed by multiple physical devices. Queues may either be host-side (CPU issues all queue operations from a worker thread) or device-side (GPU issues all queue operations from scheduler dispatches). Logical and physical device setup, device library loading, pool management, and routing from the top-level HAL API are the same regardless of queue implementation and it's even possible to support multiple queue types per logical device (if ganging an APU and a dGPU, for example). To start the host-side queue will be implemented in future changes and the device-side queue is present only as a placeholder for later implementation.
There are some things I'm not too pleased with (like all the block pools floating around) but I'll be cleaning things up as I implement the queues and try to reduce how much state is shared between the physical device and its queue implementations.