Questions tagged [mpi]
MPI is the Message Passing Interface, a library for distributed memory parallel programming and the de facto standard method for using distributed memory clusters for high-performance technical computing. Questions about using MPI for parallel programming go under this tag; questions on, eg, installation problems with MPI implementations are best tagged with the appropriate implementation-specific tag, eg MPICH or OpenMPI.
7,107
questions
0
votes
0
answers
6
views
MPI_Spawn with every process freezing
I'm practicing with mpi exercises. In this one I must separate the static processes in two groups, odds and even. Then each group should create 2 processes. The thing is that if I only do that with ...
1
vote
1
answer
72
views
C code for sorting 4 byte integers in a file using MPI gives memory ranges overlap error
Below, I have a C code that is supposed to take in a file with various 4-byte integers and sort them in ascending order using MPI functions:
#include <stdio.h>
#include <stdlib.h>
#include ...
0
votes
1
answer
23
views
Capture KeyboardInterrupt in context manager when OpenMPI run is manually terminated
I am running code in parallel using mpi4py. I've noticed that if I run the code and perform a keyboard interrupt, my context manager __exit__ will run if I run the code as python file.py but will not ...
0
votes
0
answers
32
views
MPI - One MPI_Send to multiple listeners
the thing is that I'm writting a programm in C using MPI. I the objective is to have N processes in the programme and once initiated one process send a token to a random different process, repeating ...
0
votes
0
answers
26
views
Running mpirun from OpenMPI does nothing, freezes as if it were waiting for network or something
I have installed openmpi 4.1.6 in kubuntu 24.04 from the repositories. The output of mpirun --version is:
mpirun (Open MPI) 4.1.6
Report bugs to http://www.open-mpi.org/community/help/
However, if I ...
0
votes
1
answer
26
views
MPI comm.size is always 1
My MPI comm.size is always 1. I ran the following python script (test_mpi.py) to check if MPI was working properly.
mpirun -np 4 python test_mpi.py
from mpi4py import MPI
import mpi4py
comm = MPI....
0
votes
1
answer
15
views
Problem with xml format to output .vtr and combine to a .pvtr file
I am new to XML, and I tried to use pvtr format to combine several vtr files to output my data by using Paraview. The behavior of those formats is very strange in vtr. and when I open pvtr, it does ...
0
votes
0
answers
24
views
CMake repeatedly fails to find MPI libraries, succeeds after multiple runs
I'm trying to compile the Elmer FEM repository inside the "MSYS2 MinGW 64-bit" environment on Windows. I'm encountering a bizarre issue where CMake fails to find MPI libraries on the first ...
0
votes
0
answers
14
views
MPI_Win_lock seems to be working in one host but not on several hosts
I wrote a program to create a job-stealing work queue in a distributed system, using MPI. There is a number of jobs to be completed and there is an index to advance through the list of all possible ...
0
votes
0
answers
18
views
missing MPI_C_LIBRARIES MPI_C_INCLUDE_PATH on Windows
On Ubuntu I compiled this project https://github.com/ElmerCSC/elmerfem
This is the CMake file
IF(WITH_MPI)
# Advanced properties
MARK_AS_ADVANCED(
MPI_EXTRA_LIBRARY
MPI_LIBRARY
)
...
1
vote
0
answers
27
views
Custom MPI_Datatype inside OpenMPI MCA module
I'm implementing an Allreduce algorithm inside the mca/coll framework.
The algorithm I'm implementing needs each node to send at each step of the computation only a part of the vector (like a ring ...
0
votes
1
answer
35
views
mpi cluster debugger
I am trying to debug an MPI application using Intel MPI and Fortran in Visual Studio 2019. When I press F5 to start debugging, it does not work. There is no MPI CLUSTER DEBUGGER in Debugging > ...
0
votes
1
answer
34
views
Quantum Espresso aborted with "1 process returned a non-zero exit code."
My workload is not intensive. I have computed more complex systems using Quantum Espresso. However, I am currently take this error.
"The primary job terminated normally, but one process returned ...
0
votes
1
answer
54
views
mpfr_t in custom MPI structs
I am working on converting my program to use arbitrary precision and thus I started utilizing MPFR. I had a custom MPI struct containing my data in my original code. Now that I have converted my data ...
2
votes
1
answer
61
views
Gather 3D Matrix Blocks of Different Sizes using MPI
I am trying to gather 3D matrix blocks from 8 processes to root process. Each process has a 3D matrix of size 7x7x7 but it is sending just some part of it (a 3D matrix block). You can see the ...