Skip to content

Ryty 2.1.0: verified Intel support - #31

Merged
aarvsn merged 2 commits into
mainfrom
release/2.1.0-intel
Nov 14, 2026
Merged

aarvsn merged 2 commits into
mainfrom
release/2.1.0-intel

Conversation

@aarvsn

@aarvsn aarvsn commented Nov 13, 2026

Copy link
Copy Markdown
Owner

What changed

Ryty 2.1.0 focuses entirely on Intel CPU support. The AMD-only instruction lowering behind --to-intel is now verified end to end, and the CLI guides Intel users towards it.

Before this release, a --to-intel port could silently ship a binary that still contained an AMD-only instruction (e.g. a trampoline site the writer failed to overwrite), which then traps on an Intel host. Now the finished image is re-scanned and the port fails instead.

--to-intel pipeline (Linux)
  convert code segments  ──►  write image (place stubs)  ──►  ScanResidual(finished image)
                                                                     │
                                                     empty ──────────┴────────── non-empty
                                                       │                            │
                                    "no AMD-only instructions remain"       port fails (exit 2)
                                                                             name + offset reported

Intel features

  • Post-lowering residual verification - IAmd64OnlyConverter::ScanResidual() lists every AMD-only instruction still recognized in a code segment. After --to-intel, the CLI re-scans the finished Linux image and fails the port (exit code 2, with instruction name and offset) if any site survived. --to-intel --verbose prints Intel verification: no AMD-only instructions remain in the ported image.
  • Host CPU detection - new core/relinker/cli/include/HostCpu.hpp reads the host CPU vendor with CPUID. On an Intel host without --to-intel the CLI prints a warning and records one in the porting report.
  • Scheme/report surfacing - PortScheme carries toIntel, emitted in the one-line scheme description, the ryty-port-report/2 and the ryty-batch-report/1. The web Porting Studio mirrors it in its scheme, card and JSON report.
  • Version 2.1.0 across the CLI (--version), the Qt6 GUI, the RytyNet bridge (RYTNET_VERSION, User-Agent), the Metal bridge capability value and the Apple LC_SOURCE_VERSION payload.

Tests

  • New C++ tests TestIntelCpuLowering, TestAmd64OnlyResidualScan, TestHostCpuDetection.
  • New Python integration suite core/relinker/tests/IntelLoweringTests.py (in-place MONITORX, trampoline CLZERO/RDPRU, no-flag passthrough, scheme line, batch report), registered in CMake.
  • Version assertions updated (RelinkerTests.cpp, MacOsSignatureTests.py).
  • Full ctest suite passes 7/7 on the linux-release-cli preset; node --check passes on the web assets.

Docs

  • CHANGELOG.md (new 2.1.0 section), README.md, docs/user/USAGE.md, docs/dev/INSTRUCTION_LOWERING.md, docs/dev/TechnicalDebt.md, demo/web/README.md.

Checklist (per .github/PULL_REQUEST_TEMPLATE.md)

  • Follows the coding conventions (naming, minimal comments, Conventional-Commits-style message).
  • Every function either does exactly what it is supposed to or throws (ScanResidual throws CodegenException on out-of-range segments; the CLI throws on residual sites).
  • New lowering/verification code has coverage in RelinkerTests.cpp and IntelLoweringTests.py.
  • ctest passes on the linux-release-cli preset.

This pull request was created by an AI agent (OpenHands) on behalf of the user.

@aarvsn can click here to continue refining the PR

Focus this release entirely on Intel hosts: the AMD-only instruction
lowering behind --to-intel is now verified end to end and the CLI guides
Intel users towards it.

- ScanResidual on IAmd64OnlyConverter lists any AMD-only instruction still
  present after conversion. The CLI re-scans the finished Linux image and
  fails the port (exit 2, with name and offset) if a site survived, so a
  broken lowering can never ship a binary that traps.
- HostCpu detects the host CPU vendor with CPUID; on an Intel host without
  --to-intel the CLI warns and records a report warning.
- PortScheme carries toIntel (text line, port report and batch report), and
  the web studio mirrors it in its scheme, card and report.
- --to-intel --verbose confirms "no AMD-only instructions remain".
- Version 2.1.0 across CLI, GUI, RytyNet, Metal capability and Apple
  LC_SOURCE_VERSION payloads.

Tests: new C++ TestIntelCpuLowering/TestAmd64OnlyResidualScan/
TestHostCpuDetection and a new IntelLoweringTests.py integration suite;
version assertions updated. Full ctest suite passes 7/7.

Co-authored-by: openhands <openhands@all-hands.dev>
The real Objective-C Metal bridge (RytyMetalRenderer.m, compiled only on
macOS) still returned the 2.0.0 capability value, so TestMetalBridge failed
on the macOS CI job. Bump it to 0x00020100 alongside the Linux stub.

Co-authored-by: openhands <openhands@all-hands.dev>
@aarvsn
aarvsn marked this pull request as ready for review November 14, 2026 16:02
@aarvsn
aarvsn merged commit 1aa7933 into main Nov 14, 2026
4 checks passed
@aarvsn
aarvsn deleted the release/2.1.0-intel branch November 14, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants