IMB-MPI1-GPU treats -h / --help as an invalid benchmark name and starts running benchmarks instead of printing help and exiting

Open Beginner friendly
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c
Domain
cli

Research direction

Start at the IMB-MPI1-GPU command-line entry point and reproduce the reported behavior with -h or --help. The fix is done when either option prints help and exits without reporting an invalid benchmark or running benchmarks.

Written by the indexing model from the issue text.

Description

qa_sharp@r-hpc-gpu01:~$ $HPCX_MPI_TESTS_DIR/imb/IMB-MPI1-GPU -h
#----------------------------------------------------------------

Intel(R) MPI Benchmarks 2021.10, MPI-1 part (GPU)

#----------------------------------------------------------------

Date : Mon Apr 20 13:47:06 2026

Machine : x86_64

System : Linux

Release : 6.12.0-55.9.1.el10_0.x86_64

Version : #1 SMP PREEMPT_DYNAMIC Tue Mar 25 09:14:09 EDT 2025

MPI Version : 3.1

MPI Thread Environment:

Calling sequence was:

/auto/qa_smg/IB/qa_sharp/HPCX_2.50_TP4/hpcx-v2.50-gcc-doca_ofed-redhat10-cuda13-x86_64/ompi5/tests/imb/IMB-MPI1-GPU -h

Minimum message length in bytes: 0

Maximum message length in bytes: 4194304

MPI_Datatype : MPI_BYTE

MPI_Datatype for reductions : MPI_FLOAT

MPI_Op : MPI_SUM

List of Benchmarks to run:

PingPong

PingPing

Sendrecv

Exchange

Allreduce

Reduce

Reduce_local

Reduce_scatter

Reduce_scatter_block

Allgather

Allgatherv

Gather

Gatherv

Scatter

Scatterv

Alltoall

Alltoallv

Bcast

Barrier

Invalid benchmark name -h

!! Benchmark PingPong invalid for 1 processes !!

!! Benchmark PingPing invalid for 1 processes !!

#-----------------------------------------------------------------------------

Benchmarking Sendrecv

#processes = 1

#-----------------------------------------------------------------------------
#bytes #repetitions t_min[usec] t_max[usec] t_avg[usec] Mbytes/sec
0 1000 0.14 0.14 0.14 0.00
1 1000 6960.38 6960.38 6960.38 0.00
2 1000 6960.27 6960.27 6960.27 0.00

Dominant language
C
Stars
189
Forks
70
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/mpi-benchmarks

All issues in intel/mpi-benchmarks

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.