mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3668
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/1782
Author: @leadgtr7
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:sycl-effort-end-binary📝 Commits (1)
f3f88eeserve: effort_position "end" reads the SYCL engine binary, not its launcher script, for --tail-role-token📊 Changes
2 files changed (+97 additions, -1 deletions)
View changed files
📝
serve/server.py(+15 -1)➕
tools/test_effort_end_args.py(+82 -0)📄 Description
Title
Issue: Resolves #1781
Summary
"effort_position": "end"(#458) never turned on with the Intel port: the server checked the launcher scriptsycl/serve/strata-sycl.shfor--tail-role-tokeninstead of the engine binary it runs, and fell back to the top-of-prompt effort with "needs engine 0.1.39 or newer". This resolves the launcher to its binary before the check. CUDA and HIP are untouched: theirexeis the engine and is read as before.What changed
serve/server.py: newengine_binary(exe, cfg). For anexenamedstrata-sycl.shit returns the launcher's repo +STRATA_SYCL_BIN(from the config'senv, else the environment, elsebuild-sycl-aot/strata, the launcher's own default) when that file exists; otherwiseexeunchanged.effort_end_args()reads that file instead ofexe. Nothing else uses it.tools/test_effort_end_args.py(new, no GPU, fake files in a temp repo): launcher + binary with the option -> args; binary without it -> None;STRATA_SYCL_BINfrom the config'senv; launcher with no binary -> falls back to reading the launcher (old behaviour); a plain engineexewith and without the option (unchanged path);start/unset stays off.How it was checked
python -m unittest tools.test_effort_end_args: 6 pass onfb58e0d+ this commit. Without theserver.pychange the two launcher tests fail (2 failures), so they test the fix.sycl/tools/build.sh),engine_binary(".../sycl/serve/strata-sycl.sh", {})resolves to.../build-sycl-aot/strata, which contains--tail-role-token.effort_position: endon this exact commit (the card was busy with a benchmark); the default path (effort_positionunset orstart) returns before the new code, so it is unchanged.Extra Notes
Only the Python server is touched; no engine rebuild needed. Assisted-by: Claude Code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.