LAV Solver Stalls with Custom LPAffineCtrl Configuration on Multi-Rank MPI
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- julia
調査の方向性
まず lav.jl を読み、特に 5–6 行目の問題サイズの設定と 97 行目の solver 呼び出しを確認してから、カスタム LPAffineCtrl フラグを使用し、4 つの MPI プロセスで分散実行を再現します。デフォルトの El.lav(A, b) パスと比較し、logging、progress、timing、outerEquil、または Mehrotra の設定のどれが停止を引き起こしているのかを切り分けます。完了の条件は、カスタム制御のテストが watchdog のタイムアウト以内に完了することです。
索引モデルが issue の本文から書いたものです。
説明
Description
When running the distributed LAV (Least Absolute Value) solver test with a custom LPAffineCtrl configuration where print, progress, and time flags are enabled, the test stalls and exceeds the 5-minute watchdog timeout. This occurs specifically when executed across multiple MPI ranks (e.g., using mpiexec with 4 processes).
Environment
- Julia Versions: 1.10 and release candidate builds
- MPI Setup:
MPICH_jllorOpenMPIviampiexec -n 4 - Trigger: Fresh dependency resolution (common in CI/CD environments)
Problem Details
Custom Control Configuration Causes Stall
A custom LPAffineCtrl is constructed using Float64 with an embedded MehrotraCtrl. The following configuration triggers the hang:
print,progress, andtimeflags enabled (both inMehrotraCtrland top-level).outerEquilset totrue.- Passing this object into
El.lavduring a distributed run.
Workaround: Default Behavior Works
Calling El.lav(A, b) without passing a custom control object completes successfully within the timeout and does not hang.
Root Cause Hypothesis
I/O Contention & Synchronization: Multi-rank logging and progress instrumentation likely introduce bottlenecks. When multiple MPI processes attempt to emit output simultaneously, it may lead to deadlocks or extreme performance degradation.
Supporting Observations:
- Default Success: The test completes immediately without logging/progress flags.
- MPI Specificity: The stall is exclusive to multi-rank settings with enabled instrumentation.
- Environment Factor: The issue is more prevalent after fresh dependency resolution; cached local builds are less susceptible.
Impact
To prevent CI timeouts, the test suite currently uses a simplified solver invocation. This reduces test coverage for:
- Custom solver control options (
LPAffineCtrl). - Progress reporting functionality.
- Timing and performance instrumentation in distributed environments.
Suggested Investigation
- Profiling: Profile solver behavior in multi-rank mode with logging enabled vs. disabled.
- I/O Inspection: Inspect MPI synchronization and I/O patterns inside
El.lavwhen flags are active. - Algorithm Isolation: Determine if this is specific to the Mehrotra interior point algorithm or affects other configurations.
- Scaling Tests: Test across different MPI process counts (2, 8, 16) to observe scaling behavior.
References
- Fix History: Previous stabilization involved reducing the test matrix size (50 to 12) and reverting to the default solver path.
- Test File:
lav.jl(lines 5–6 problem size, line 97 solver invocation).
- 主要言語
- Julia
- スター
- 85
- フォーク
- 13
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaParallel/Elemental.jl のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
Segfault on PkgEvalオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
JuliaParallel/Elemental.jl#76 · コメント 9 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
JuliaParallel/Elemental.jl#75 · コメント 19 件 ·
JuliaParallel/Elemental.jl の issue をすべて見る
似ている issue
-
docs
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
path: splitext treats directory references and leading dots as extensions対応中かも @Hiten0305l が今日担当しました。 オープン
難易度 2/5 半日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
JuliaRegistries/RegistryCI.jl#758 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JuliaParallel/Hwloc.jl#93 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信