mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4156] [CLOSED] [Engine] gfx906: map the stream-priority calls in the HIP compat layer #4927
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4927
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4156
Author: @KevinX8
Created: 10/25/2026
Status: ❌ Closed
Base:
main← Head:gfx906-stream-priority-shim📝 Commits (1)
975e6ae[Engine] gfx906: map cudaStreamCreateWithPriority / cudaDeviceGetStreamPriorityRange in the HIP compat layer📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
include/strata/platform/hip_compat/strata_hip.h(+2 -0)📄 Description
Problem and result: since 0.2.3 (the DFlash2 drafter), the gfx906 build (
-DSTRATA_HIP_GFX906=ON) stops atsrc/core/dflash2.cpp:That build compiles the CUDA sources through
include/strata/platform/hip_compat/, which does not map these two names, anddflash2.cpptakes its CUDA branch there (STRATA_USE_HIPis not defined in the gfx906 build). With the two#defines the build completes.Approach: the same one-line mapping the shim already has for
cudaStreamCreate/cudaStreamCreateWithFlags, tohipStreamCreateWithPriority/hipDeviceGetStreamPriorityRange. Only the gfx906 build includes this header.Validation:
975e6ae4), Linux, ROCm 10.1 clang,cmake -DSTRATA_ENABLE_CUDA=ON -DSTRATA_ENABLE_HIP=OFF -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 -DSTRATA_PORTABLE=ON -DSTRATA_NATIVE_EXPERTS=ON -DSTRATA_Q6K_EXPERTS=ON -DSTRATA_MMQ_KQUANTS=ON,ninja strata: builds. At v0.2.4 and v0.2.6 without the change: the error above.serve/server.py(tool calls correct; days of use on 0.2.4 and 0.2.6).strata generate --draft dflash2 --draft-model <pack>(the code this lets compile) runs on the MI50.Limits: none known.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.