question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'opal_shmem_base_select failed' on Linux

See original GitHub issue

try to run mpi using conda on Ubuntu 20.04.3 but failed with:

--------------------------------------------------------------------------
It looks like opal_init failed for some reason; your parallel process is
likely to abort.  There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems.  This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

  opal_shmem_base_select failed
  --> Returned value -1 instead of OPAL_SUCCESS
--------------------------------------------------------------------------

created environment with

conda create -n ENV_NAME -c conda-forge 'python=3.10.*' openmpi mpi4py,

could anyone provide some help on this?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shuheng-mocommented, Aug 30, 2022

@dalcinl Cheers, asked opempi developers and problem solved. Feel free to close this issue and again thank you so much.

0reactions
shuheng-mocommented, Aug 30, 2022

Besides, attach the bash scripts to solve this issue incase somebody want to have a try

$ sudo apt-get update                 # upgrade apt-get to latest
$ sudo apt-get -y install mpich       # install mpich
$ sudo apt-get -y install openmpi-bin # install openmpi
$ sudo pip install mpi4py             # install mpi4py
$ find / -name libmpi.so              # find the relevant mpi lib on your machine
$ export LD_PRELOAD=path/to/your/libmpi.so
$ source ~/.bashrc                     # add to bash profile
$ export OMPI_ALLOW_RUN_AS_ROOT=1
$ export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
$ source ~/.bashrc                    # add to bash profile
$ mpiexec --help                      # return the following if success
mpiexec (OpenRTE) 4.0.5

Usage: mpiexec [OPTION]...  [PROGRAM]...
Start the given program using Open RTE

-c|-np|--np <arg0>       Number of processes to run
-h|--help <arg0>         This help message
   -n|--n <arg0>         Number of processes to run
-q|--quiet               Suppress helpful messages
-v|--verbose             Be verbose
-V|--version             Print version and exit

For additional mpirun arguments, run 'mpirun --help <category>'

The following categories exist: general (Defaults to this option), debug,
    output, input, mapping, ranking, binding, devel (arguments useful to OMPI
    Developers), compatibility (arguments supported for backwards compatibility),
    launch (arguments to modify launch options), and dvm (Distributed Virtual
    Machine arguments).

Report bugs to http://www.open-mpi.org/community/help/
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug #1970555 ""linux-tools-lowlatency” package fails to update
After updating to ubuntu 22.04 I'm getting an error on linux-tools-5.15.0-27-lowlatency trying to install /usr/lib/libcpupower.so.5.15.0-27 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found