Repository navigation
Windows: raea.exe starts on a CPU without AVX; 0.1.8's notes for rc10-rc12 - #204
Merged
Merged
Conversation
rc11's raea.exe stopped before main on a processor without AVX (Intel's SDE as a Goldmont Celeron and as a Nehalem: "Executed instruction not valid", vmovaps ymm at raea.exe+0x123b5d40). The instruction is in one of seven C++ dynamic initializers in the CRT's table: ctt-etcpak's ETC1 tables (Tables.cpp's g_table_SIMD and the rest, set with _mm_setr_epi16, which MSVC initializes at run time), from the copy ctt builds with /arch:AVX2. ctt picks an ISA's copy at run time for its encoders, but every copy's static initializers run at start, on every CPU. With those seven skipped (a patched rc11), raea.exe --version runs under SDE as both chips. ctt comes only from Bevy's compressed_image_saver feature (bevy_image's CompressedImageSaver, BC7/ASTC/ETC2 for Bevy's asset processing), which raea never runs. It's out of the plugin catalog's Bevy features (0.19 and 0.20), engine/bevy-plugins' generated `bevy` feature (tools/bevy-plugins.sh sync agrees) and engine/render's bevy-all, so ctt's eight crates, fast_image_resize, ispc-build-utils and zstd leave the lock; NOTICE and LICENSES are tools/licenses.sh's on main with the change. compressed_image_saver_universal (basis-universal) stays.
…r's darks, no-AVX; Linux's requirements The Windows fixes since the notes were written (rc10-rc12), in the notes' words, and what Linux needs: a processor with AVX (the static ONNX Runtime's initializers use it) and glibc 2.39, in the notes' Known and the install page. Dated the 19th.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rc11's raea.exe stops before it does anything on a PC whose processor has no AVX: a Goldmont Celeron or Pentium, a Nehalem Core. Intel's SDE (10.13.1) on the Windows PC, as each chip:
Why. The instruction is in one of seven C++ dynamic initializers in raea.exe's CRT table (
.CRT$XCU), which run before main. They copy ETC1's intensity tables (2, 5, 9, 13, 18, 24, 33, 47 / 8, 17, 29, 42, 60, 80, 106, 183) into globals: ctt-etcpak'sTables.cpp, whoseg_table_SIMDand the rest are set with_mm_setr_epi16, which MSVC initializes at run time. ctt builds each encoder once per ISA and picks one at run time, but every copy's static initializers run at start, so the/arch:AVX2copy's run on every CPU.Proof it's the only one in raea.exe. A copy of rc11's raea.exe with those seven initializers made
retruns--versionunder SDE as both a Nehalem and a Goldmont, with Windows' own VC++ runtime. (With the 14.44 runtime raea bundles, SDE then stops inVCRUNTIME140.dll's memmove. That's SDE's artifact: the DLL's memcpy is a function override (dynamic relocation type 7, thefothksection), which Windows' loader points at an AVX copy from the real CPU's features, which SDE can't hide from the kernel. The exported memmove checks__isa_availableitself, and on a real CPU without AVX the loader keeps it.)The fix. ctt comes only from Bevy's
compressed_image_saver(bevy_image'sCompressedImageSaver, BC7/ASTC/ETC2 for Bevy's asset processing), which raea never runs. It's out of:sdk/raea/bench/bevy-plugins/package.json, 0.19 and 0.20);bevyfeature (tools/bevy-plugins.sh syncwrites the same);bevy-all.So ctt's eight crates, fast_image_resize, ispc-build-utils and zstd leave the lock, and NOTICE and LICENSES are
tools/licenses.sh's output on main with the change.compressed_image_saver_universal(basis-universal) stays. The docs (bevy-plugins.md, bevy-upgrade.md, render's manifest) say why it's out.Linux has a second blocker, which this doesn't fix: the static ONNX Runtime's protobuf initializers use AVX (
vxorpsinOnShutdownRun, under SDE as a Nehalem). Linux needs glibc 2.39 already, so the notes and the install page now say Linux needs a processor with AVX (most from 2011 on). Loading ONNX Runtime at run time there, as Windows does (#110), is for the next release.Notes. 0.1.8's What's New gains what rc10-rc12 fixed on Windows: #169's workspaces and Git, #112/#124's crash at launch,
raea showand Windows paths, Intl,--quality master's darks, and no AVX. It is dated the 19th.rc12 is checked under SDE on the PC (nhm, glm) before the release.
🤖 Generated with Claude Code