host_cpu: move gta6rt's AVX preflight decision into a testable preflight() #183

Closed
Andretuta wants to merge 1 commit from upstream-pr/183 into main
Andretuta commented 2026-11-24 02:37:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:37:20Z.


Carried over from old PR 9915 by Sunkiller-qc in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9915, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
Sunkiller-qc: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Thanks for ad6e5d6, the clear AVX message is a real improvement. The decision in wmain (only --init/--run, LEONIDA_SKIP_CPU_CHECK, the message and exit code 4) wasn't reachable from a test, so this moves it into rt::host_cpu::preflight() with an injectable feature source and adds cases to host_cpu_test. Behaviour is unchanged.

Not built or run on my side.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465031696 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/183). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:37:20Z. --- > Carried over from **old PR 9915** by `Sunkiller-qc` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9915`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `Sunkiller-qc`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Thanks for ad6e5d6, the clear AVX message is a real improvement. The decision in wmain (only --init/--run, LEONIDA_SKIP_CPU_CHECK, the message and exit code 4) wasn't reachable from a test, so this moves it into `rt::host_cpu::preflight()` with an injectable feature source and adds cases to host_cpu_test. Behaviour is unchanged. Not built or run on my side.
aslan2142 commented 2026-12-01 10:37:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T10:37:34Z.

Review: COMMENTED


Reviewed the diff against current main: moving wmain's AVX preflight check into rt::host_cpu::preflight() with an injectable feature callback and unit coverage in runtime/test/host_cpu_test.cpp is clean, preserves existing behavior (including not reading LEONIDA_SKIP_CPU_CHECK on --dry-run), applies cleanly, and passes clean-room inspection.

Because this is a carried-over Draft PR whose initial CI runs were cancelled and the original author noted it was not built/run locally, please mark it ready for review (or adopt it) and trigger a fresh Windows/Linux runtime CI run before merging.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6129562209 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/183#pullrequestreview-6129562209). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T10:37:34Z. **Review:** COMMENTED --- Reviewed the diff against current `main`: moving `wmain`'s AVX preflight check into `rt::host_cpu::preflight()` with an injectable feature callback and unit coverage in `runtime/test/host_cpu_test.cpp` is clean, preserves existing behavior (including not reading `LEONIDA_SKIP_CPU_CHECK` on `--dry-run`), applies cleanly, and passes clean-room inspection. Because this is a carried-over Draft PR whose initial CI runs were cancelled and the original author noted it was not built/run locally, please mark it ready for review (or adopt it) and trigger a fresh Windows/Linux runtime CI run before merging. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 12:12:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:12:49Z.


Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.

(AI-assisted triage.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7310812050 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/183#issuecomment-7310812050). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T12:12:49Z. --- Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. *(AI-assisted triage.)*
aslan2142 commented 2026-12-01 16:28:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:28:48Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317675291 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/183#issuecomment-7317675291). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:28:48Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!183
No description provided.