Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print also mpiexec and its path in versioninfo() #887

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

giordano
Copy link
Member

I often want to quickly find out what's the pah of the mpiexec associated to the current environment and I'm always disappointed this isn't shown in versioninfo, while I appreciate we show the full path of libmpi.

@giordano
Copy link
Member Author

I just realised we already print the name of the MPI launcher at

println(io, " mpiexec: ", MPIPreferences.System.mpiexec_path)
but that's usually not the full absolute path that Sys.wich would give you, and that's also only printed for "system" MPI. Should we remove that one? Similarly,
println(io, " libmpi: ", MPIPreferences.System.libmpi)
is already a duplicate of
println(io, " libmpi: ", API.libmpi)

@giordano
Copy link
Member Author

giordano commented Nov 16, 2024

Unrelated to this PR, something is horribly broken on master (Julia Version 1.12.0-DEV.1641 Commit 7fa26f011ec (2024-11-16 19:20 UTC)) with OpenMPI_jll:

malloc(): unaligned tcache chunk detected

[3920] signal 6 (-6): Aborted
in expression starting at /home/runner/work/MPI.jl/MPI.jl/test/test_threads.jl:18

[3920] signal 11 (1): Segmentation fault
in expression starting at /home/runner/work/MPI.jl/MPI.jl/test/test_threads.jl:18

[3918] signal 15: Terminated
in expression starting at /home/runner/work/MPI.jl/MPI.jl/test/test_threads.jl:39
unknown function (ip: 0x7f63d4691115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7f63d4694ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7f63d472684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7f63d4691115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7f63d4694ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7f63d472684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7f63d4691115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7f63d4694ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7f63d472684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7f63d4691115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839
jfptr_task_done_hook_97036.1 at /opt/hostedtoolcache/julia/nightly/x64/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-master/src/julia.h:2240 [inlined]
jl_finish_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:338
start_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:1274
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7f63d4691115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839

[3917] signal 15: Terminated
in expression starting at /home/runner/work/MPI.jl/MPI.jl/test/test_threads.jl:39
unknown function (ip: 0x7fb132e91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7fb132e94ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7fb132f2684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fb132e91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7fb132e94ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7fb132f2684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fb132e91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7fb132e94ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7fb132f2684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fb132e91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839
jfptr_task_done_hook_97036.1 at /opt/hostedtoolcache/julia/nightly/x64/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-master/src/julia.h:2240 [inlined]
jl_finish_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:338
start_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:1274
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fb132e91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839
jfptr_task_done_hook_97036.1 at /opt/hostedtoolcache/julia/nightly/x64/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-master/src/julia.h:2240 [inlined]
jl_finish_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:338
start_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:1274
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fb132e91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839
jfptr_task_done_hook_97036.1 at /opt/hostedtoolcache/julia/nightly/x64/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-master/src/julia.h:2240 [inlined]
jl_finish_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:338
start_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:1274
unknown function (ip: (nil)) at (unknown file)
clock_nanosleep at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
__nanosleep at /lib/x86_64-linux-gnu/libc.so.6 (unknown line
[3916] signal 15: Terminated
in expression starting at /home/runner/work/MPI.jl/MPI.jl/test/test_threads.jl:18
unknown function (ip: 0x7fa2b4c91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7fa2b4c94ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7fa2b4d2684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fa2b4c91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7fa2b4c94ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7fa2b4d2684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fa2b4c91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
jl_parallel_gc_threadfun at /cache/build/builder-amdci5-5/julialang/julia-master/src/gc-stock.c:3544
unknown function (ip: 0x7fa2b4c94ac2) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: 0x7fa2b4d2684f) at /lib/x86_64-linux-gnu/libc.so.6
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fa2b4c91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839
jfptr_task_done_hook_97036.1 at /opt/hostedtoolcache/julia/nightly/x64/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-master/src/julia.h:2240 [inlined]
jl_finish_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:338
start_task at /cache/build/builder-amdci5-5/julialang/julia-master/src/task.c:1274
unknown function (ip: (nil)) at (unknown file)
unknown function (ip: 0x7fa2b4c91115) at /lib/x86_64-linux-gnu/libc.so.6
pthread_cond_wait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
uv_cond_wait at /workspace/srcdir/libuv/src/unix/thread.c:822
ijl_task_get_next at /cache/build/builder-amdci5-5/julialang/julia-master/src/scheduler.c:520
poptask at ./task.jl:1163
wait at ./task.jl:1172
task_done_hook at ./task.jl:839
)
usleep at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
ompi_mpi_finalize at /home/runner/.julia/artifacts/c519b6f9838786c8d97506fb28f7e10dfc74b9a3/lib/libmpi.so (unknown line)
MPI_Finalize at /home/runner/work/MPI.jl/MPI.jl/src/api/generated_api.jl:1872 [inlined]
Finalize at /home/runner/work/MPI.jl/MPI.jl/src/environment.jl:263
unknown function (ip: 0x7fb0f9b1b51f) at (unknown file)
jl_apply at /cache/build/builder-amdci5-5/julialang/julia-master/src/julia.h:2240 [inlined]
do_call at /cache/build/builder-amdci5-5/julialang/julia-master/src/interpreter.c:125
eval_value at /cache/build/builder-amdci5-5/julialang/julia-master/src/interpreter.c:222
eval_stmt_value at /cache/build/builder-amdci5-5/julialang/julia-master/src/interpreter.c:173 [inlined]
eval_body at /cache/build/builder-amdci5-5/julialang/julia-master/src/interpreter.c:684
jl_interpret_toplevel_thunk at /cache/build/builder-amdci5-5/julialang/julia-master/src/interpreter.c:895
jl_toplevel_eval_flex at /cache/build/builder-amdci5-5/julialang/julia-master/src/toplevel.c:1065
jl_toplevel_eval_flex at /cache/build/builder-amdci5-5/julialang/julia-master/src/toplevel.c:1005
ijl_toplevel_eval at /cache/build/builder-amdci5-5/julialang/julia-master/src/toplevel.c:1076
ijl_toplevel_eval_in at /cache/build/builder-amdci5-5/julialang/julia-master/src/toplevel.c:1118
eval at ./boot.jl:460
include_string at ./loading.jl:2839
_include at ./loading.jl:2899

For the record, last successful run was with Julia Version 1.12.0-DEV.1263 Commit 17445fe752b (2024-09-29 09:41 UTC) (this may help with bisection). Version of OpenMPI_jll is v5.0.5+0 in both cases, so that doesn't seem to be relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant