Files
Strata/tools
Niko1221 e17d5c9c12 setup --update: an Intel (SYCL) install reads the engine version from the engine, not the launcher (#4544, PR #4645)
On an Intel install the run config's exe is the launcher script
sycl/serve/strata-sycl.sh. update_install read the engine version from
it: no BUILD.json beside the script and no "engine=" line in it, so the
version came out as 0.1.12 and every `setup.sh --backend sycl --update`
ended with "the engine was NOT updated" although the engine had just been
built.

config_engine_version() now takes, for a SYCL config (backend sycl or the
launcher as exe), the version setup_intel.py stamps in
<repo>/engine-sycl/BUILD.json, else the "engine=" line of the binary the
launcher runs (STRATA_SYCL_BIN from the config's env or the environment,
default build-sycl-aot/strata), else unknown (no false warning). Other
configs read the version exactly as before.

Idea and diagnosis from PR #4645 by ctr-137 (#4544); reimplemented
against the repo root instead of the working directory, with the binary
fallback the record asks for. The PR's second commit (strata-sycl.sh
passing STRATA_*=0 through, #4546) is SYCL launcher work and not taken
here.

Test: tools/test_setup_update_sycl_version.py (5 fail on the base, 5
pass); test_setup_update and test_setup_sycl pass with it (39/39).
Not run: a real Intel install update (no Arc card here).
2026-11-16 17:25:58 +01:00
..