Repository navigation
[rocshmem] mpiexec_deadlock_analysis w/o NFS - #6617
Merged
abouteiller merged 2 commits intoJun 26, 2026
Merged
Conversation
relying on a shared nfs/lustre filesystem.
Contributor
|
This pull request has been inactive for 25 days and will be marked as stale. If you would like to keep this PR open, please:
This PR will be automatically closed in 5 days if no further activity occurs. |
systems-assistant Bot
pushed a commit
to ROCm/rocSHMEM
that referenced
this pull request
Jun 26, 2026
## Motivation On certain test systems we do not have a shared filesystem, the deadlock_analysis script harness would depend on a shared filesystem to collect traces and artifacts. Remove that limitation. ## Technical Details Use MPI stdout redirection to coalesce the trace artifacts to the headnode in a headnode local output directory, perform analysis on the headnode. Prior filesystem based mode remains available and default. ## JIRA ID ## Test Plan Intentionally added a deadlock to a functional test, compiled with Debug. Run mpiexec_deadlock_attach script and observe artifacts. ## Test Result ``` ROCSHMEM_DEBUG_LEVEL=trace:stats ~/ompi/bin/mpirun -n 2 tests/functional_tests/rocshmem_functional_tests -n 1 -a 26 & (sleep 2; /home/abouteil/rocm-systems/projects/rocshmem/scripts/debug/mpiexec_deadlock_analysis.sh rocshmem_functional_tests --stats --color --no-shared-fs ) ### Creating Test: Blocking WG level Puts B=ipc PE=2 W=1 Z=64 ### Deploying deadlock analysis... Executable: rocshmem_functional_tests Output directory: ./rocshmem_deadlock_analysis_20260530_013437 Filesystem mode: no shared fs (--output-filename) Stats: yes Color: --color Found 4 process(es) matching 'rocshmem_functional_tests': 717472 717473 751554 751555 Output directory: /tmp/rocshmem_deadlock_20260530_013437 Per-process timeout: 120s Analyzing PID 717472 (PE 0) ... OK Analyzing PID 717473 (PE 1) ... OK (no GPU threads) Analyzing PID 751554 (PE 0) ... OK Analyzing PID 751555 (PE 1) ... OK (no GPU threads) === Attach and Analyze Summary === Processes analyzed: 4 / 4 PE 0 PID 751554 groups=1 \033[1;31m1\033[0m wf(s) in rocSHMEM; \033[1;36mWaiting for remote PE memory update (barrier/sync or user rocshmem_wait_until). Check if the remote PE is alive and making progress. (at: #0 0x0000792efa5af3c8 in rocshmem::Context::wait_until<long> (this=0x792eed407000, ivars=0x792efac04008, cmp=0, val=1) at src/context_tmpl_device.hpp:224)\033[0m PE 1 PID 751555 groups=? (no GPU threads found) === BEGIN FILE: pe0_pid_717472.txt === [New LWP 717493] [New LWP 717490] [New LWP 717488] [New LWP 717485] [New LWP 717481] [New LWP 717480] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x000077a09e06695f in ?? () from /opt/rocm-7.2.1/lib/libhsa-runtime64.so.1 === rocSHMEM Deadlock Analysis === Process(es): 717472 Total GPU wavefronts analyzed: 1 Unique backtrace groups: 1 [rocm-systems] ROCm/rocm-systems#6617 (commit d43a76e)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
On certain test systems we do not have a shared filesystem, the deadlock_analysis script harness would depend on a shared filesystem to collect traces and artifacts. Remove that limitation.
Technical Details
Use MPI stdout redirection to coalesce the trace artifacts to the headnode in a headnode local output directory, perform analysis on the headnode.
Prior filesystem based mode remains available and default.
JIRA ID
Test Plan
Intentionally added a deadlock to a functional test, compiled with Debug.
Run mpiexec_deadlock_attach script and observe artifacts.
Test Result