[Build] 0.2.20: strata-load / strata-concurrent / strata-overlap / pinned_shared_test fail to link — pinned.cu's NUMA arena calls expert_layout() from strata_core
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- cmake, cpp
- 領域
- build-system
調査の方向性
リンク失敗は engine/cmake/strata_gpu_engine.cmake の4つのサイドツール target(strata-load、strata-concurrent、strata-overlap、pinned_shared_test)が strata_core と strata_kernels だけをリンクしている一方、engine/src/core/pinned.cu が strata_kernels_cpu から strata::kernels::cpu::expert_layout() を呼び出していることに由来します。まずそれらの target_link_libraries 行を確認し、1つの target のリンクのみのビルドでシンボルが欠けていることを確かめてください。HIP ビルドで4つの target すべてが rc=0 でリンクしたら完了です。理想的には各 target に strata_kernels_cpu を追加することによって。
索引モデルが issue の本文から書いたものです。
説明
Hi — we maintain a small gfx1100 replay fork (xyzzing/Strata) and re-play our carried commits onto every upstream tag; the fresh full build in that routine is how this surfaced. Sharing in case the exact target list saves you the lookup.
Problem and result
At the v0.2.20 tag (a34979fc9), a Linux HIP build (gfx1100, vendored ROCm SDK), four side-tool targets fail to link on a pristine checkout:
$ ninja -k 0
FAILED: [code=1] strata-overlap
FAILED: [code=1] strata-load
FAILED: [code=1] pinned_shared_test
FAILED: [code=1] strata-concurrent
ld.lld: error: undefined symbol: strata::kernels::cpu::expert_layout()
>>> referenced by pinned.cu
>>> pinned.cu.o:(strata::core::(anonymous namespace)::place_arena_numa_slices(void*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)) in archive libstrata_core.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: cannot make progress due to previous errors.
The main strata binary links fine — only the four tools break.
Cause
The 0.2.20 integration commits (534802c8d, ad4c565e8) added the NUMA-arena slicing (place_arena_numa_slices, STRATA_NUMA_ARENA) to engine/src/core/pinned.cu, which calls strata::kernels::cpu::expert_layout() — declared in include/strata/kernels/cpu/expert_layout.hpp, defined in src/kernels/cpu/expert_layout.cpp, compiled into the strata_kernels_cpu static library. strata_engine links strata_kernels_cpu (cmake/strata_gpu_engine.cmake, the PUBLIC link line), which is why strata resolves the symbol; the four tools link only strata_core (+ strata_kernels) and so pull an unresolved reference out of the archive.
Suggested fix
One link line each in engine/cmake/strata_gpu_engine.cmake:
strata-load(line ~27): addstrata_kernels_cputotarget_link_librariesstrata-concurrent(line ~31): samestrata-overlap(line ~36): samepinned_shared_test(line ~1302, the Linux-only block): same
Link-graph only, no source change — with those four additions the full HIP graph builds rc=0 (779 targets here).
Notes
- Flagging in case it's useful: if the Linux CI matrix doesn't build these HIP side-tool targets, that would explain why it landed quietly — same class of paths hole as the register one in #6629, entirely your call whether it's worth closing.
- We carry the four link lines fork-side; happy to send them as a PR if that's less work than applying by hand.
Prepared with AI assistance (fork-maintenance agent); reviewed and posted by the operator.
- 主要言語
- C++
- スター
- 11.6k
- フォーク
- 1k
- 平均マージ
- 17日 21時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Niko1221/Strata のほかの issue
-
[Other] Docker entrypoint refuses a MODEL_PATH folder of GGUF files when it holds no .strata fileオープンneeds-format
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Niko1221/Strata#6925 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Niko1221/Strata#6731 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
Docker entrypoint MODEL_PATH check fails when folder has .gguf but no .strata files (circular error message)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンneeds-format
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
Niko1221/Strata#6721 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Niko1221/Strata#6698 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 5 日以内に返信
Niko1221/Strata の issue をすべて見る
似ている issue
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS pools対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
CefRequestContext::ClearHttpCache crashes with a null callback, though the callback is optionalオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
chromiumembedded/cef#4376 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
itinance/react-native-fs#1270 ·
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
yuaotian/antigravity-proxy#181 ·