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

Open
opened 2026-11-26 20:17:13 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/183
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9915


📝 Commits (1)

  • 93812b5 host_cpu: move gta6rt's AVX preflight decision into a testable preflight()

📊 Changes

4 files changed (+58 additions, -5 deletions)

View changed files

📝 runtime/src/host_cpu.cpp (+15 -0)
📝 runtime/src/host_cpu.h (+7 -0)
📝 runtime/src/main.cpp (+4 -5)
📝 runtime/test/host_cpu_test.cpp (+32 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/183 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9915` --- ### 📝 Commits (1) - [`93812b5`](https://github.com/ubiquitarianism/leonida/commit/93812b543c58b6f6e5b7f3d5edaff74e28e2823a) host_cpu: move gta6rt's AVX preflight decision into a testable preflight() ### 📊 Changes **4 files changed** (+58 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `runtime/src/host_cpu.cpp` (+15 -0) 📝 `runtime/src/host_cpu.h` (+7 -0) 📝 `runtime/src/main.cpp` (+4 -5) 📝 `runtime/test/host_cpu_test.cpp` (+32 -0) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#235
No description provided.