Skip to content

std::getline Input Issue with in open MPI v5.0 series #11990

@tavetius

Description

@tavetius

Thank you for taking the time to submit an issue!

Background information

Environment:

OS: Ubuntu 20.04.6 LTS
Compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0

What version of Open MPI are you using? (e.g., v3.0.5, v4.0.2, git branch name and hash, etc.)

openmpi-5.0.0rc5, openmpi-5.0.0rc7, openmpi-5.0.0rc10, openmpi-5.0.0rc13

However, this works fine with openmpi-4.1.0.

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

./configure --enable-mpi-thread-multiple --with-ft=ulfm
make
sudo make install

Please describe the system on which you are running

  • Operating system/version: OS: Ubuntu 20.04.6 LTS
  • Computer hardware: Root - Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz, remote hosts - AMD EPYC 7V12 64-Core Processor

SSH works fine. Running command mpirun --allow-run-as-root --hostfile hostfile /home/ubuntu/test/mpi_test
As I said, this works fine with 4.1.0 but doesn't work with any version of 5.


Details of the problem

All processes reached the point of "before reading." This means that the processes were started and made it to that point in the program. The root process (Process 0) successfully printed the "Enter a string" prompt and read the input.

However, the processes are not proceeding past the broadcast, and after input and ENTER it just hangs. You need to kill it with ctrl+c and after that all processes managed to proceed past the broadcast point.

mpirun --allow-run-as-root --hostfile hostfile /home/ubuntu/test/mpi_test

[openmpi_getline.cpp.zip](https://github.com/open-mpi/ompi/files/12916363/openmpi_getline.cpp.zip)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions