[PR #2376] [CLOSED] setup: give the --families probe the engine's ROCm DLLs on PATH (#2372) #4010

Closed
opened 2026-11-07 15:32:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2376
Author: @nekomario28
Created: 10/14/2026
Status: ❌ Closed

Base: main ← Head: engine-families-rocm-path


📝 Commits (1)

  • 02d9c63 setup: give the --families probe the engine's ROCm DLLs on PATH (#2372)

📊 Changes

2 files changed (+72 additions, -1 deletions)

View changed files

📝 setup.py (+8 -1)
➕ tools/test_setup_engine_families.py (+64 -0)

📄 Description

Closes #2372.

A ready-made Windows HIP engine keeps hipblas.dll and libhipblaslt.dll in rocm/bin beside it, and its loader asks for them before main. engine_families() launched strata.exe --families with no environment, so on Windows both DLLs were reported missing, --families printed nothing, and setup read that as "this engine does not run Qwen3.6-35B-A3B yet" — while the engine was already current. The report's diagnosis, and the shape of the fix.

hip_devices() already builds that PATH for the device probe (hip_lib_dirs(eng) prepended to the inherited PATH); the families probe now gets the same one.

Testing

New tools/test_setup_engine_families.py — hermetic (a temporary engine directory with a BUILD.json, subprocess.run captured; no engine, no GPU, no network):

  • the probe is launched with env["PATH"] starting at the engine's rocm/bin, and the inherited environment kept;
  • the command is still <engine>/<EXE> --families;
  • an engine whose BUILD.json lists no lib_dirs keeps the inherited PATH unchanged;
  • empty output still yields the Flash-Next default ({"qwen4exp"}).

Removing the env= argument fails two of the three (failures=1, errors=1) — the probe ran without an environment — so the guard is the reported bug rather than a restatement.

The rest of tools/test_setup_*.py is unchanged (37 pass; test_setup_engine_hash and test_setup_golden fail identically without this change).


🔄 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/Niko1221/Strata/pull/2376 **Author:** [@nekomario28](https://github.com/nekomario28) **Created:** 10/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `engine-families-rocm-path` --- ### 📝 Commits (1) - [`02d9c63`](https://github.com/Niko1221/Strata/commit/02d9c6316c2ff2f1a777bd76a49148ca17d79294) setup: give the --families probe the engine's ROCm DLLs on PATH (#2372) ### 📊 Changes **2 files changed** (+72 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+8 -1) ➕ `tools/test_setup_engine_families.py` (+64 -0) </details> ### 📄 Description Closes #2372. A ready-made Windows HIP engine keeps `hipblas.dll` and `libhipblaslt.dll` in `rocm/bin` beside it, and its loader asks for them **before `main`**. `engine_families()` launched `strata.exe --families` with no environment, so on Windows both DLLs were reported missing, `--families` printed nothing, and setup read that as "this engine does not run Qwen3.6-35B-A3B yet" — while the engine was already current. The report's diagnosis, and the shape of the fix. `hip_devices()` already builds that PATH for the device probe (`hip_lib_dirs(eng)` prepended to the inherited `PATH`); the families probe now gets the same one. ## Testing New `tools/test_setup_engine_families.py` — hermetic (a temporary engine directory with a `BUILD.json`, `subprocess.run` captured; no engine, no GPU, no network): - the probe is launched with `env["PATH"]` starting at the engine's `rocm/bin`, and the inherited environment kept; - the command is still `<engine>/<EXE> --families`; - an engine whose `BUILD.json` lists no `lib_dirs` keeps the inherited `PATH` unchanged; - empty output still yields the Flash-Next default (`{"qwen4exp"}`). Removing the `env=` argument fails two of the three (`failures=1, errors=1`) — `the probe ran without an environment` — so the guard is the reported bug rather than a restatement. The rest of `tools/test_setup_*.py` is unchanged (37 pass; `test_setup_engine_hash` and `test_setup_golden` fail identically without this change). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:27 +07:00
Sign in to join this conversation.
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
Niko1221/Strata#4010
No description provided.