Problem with MPICH Version: 4.2.0 in Linux Mint (ubuntu) #7460
Replies: 3 comments 1 reply
-
|
It likely a mismatched configuration of MPICH and |
Beta Was this translation helpful? Give feedback.
-
|
Hi! This is the full output of the mpichversion command: $ mpichversion |
Beta Was this translation helpful? Give feedback.
-
|
Thank you hzhou. It looks like upgrading the package don't do any good. Thanks again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am having a problem with MPICH Version 4.2.0. This is the version of MPI that install in Linix Mint 22 using:
sudo apt install -y libmpich-dev
Let me explain my problem with a simpe example. I am tring to run the following program:
//++++++++++++++++++++++++++++++++++++++++++++++++
#include <stdio.h>
#include <mpi.h>
int main(int argc, char** argv)
{
int id, num_procs;
return 0;
}
//+++++++++++++++++++++++++++++++++++++++++++++++
After compiling it, using "mpicc testMpi.c -o testMpi", I am running it with the following command:
$ mpiexec -n 4 testMpi
and the output I am getting is:
I am: 0 out of 1 processors:
I am: 0 out of 1 processors:
I am: 0 out of 1 processors:
I am: 0 out of 1 processors:
The correct asnwer is:
I am: 0 out of 4 processors:
I am: 1 out of 4 processors:
I am: 2 out of 4 processors:
I am: 3 out of 4 processors:
Have anyone notice someting similar?
Beta Was this translation helpful? Give feedback.
All reactions