LAV Solver Stalls with Custom LPAffineCtrl Configuration on Multi-Rank MPI

オープン
#86 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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_jll or OpenMPI via mpiexec -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, and time flags enabled (both in MehrotraCtrl and top-level).
  • outerEquil set to true.
  • Passing this object into El.lav during 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:

  1. Custom solver control options (LPAffineCtrl).
  2. Progress reporting functionality.
  3. 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.lav when 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

JuliaParallel/Elemental.jl のほかの issue

JuliaParallel/Elemental.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。