CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   parallel execution not starting (

gfilip November 2, 2011 17:46

parallel execution not starting

I have a clean install of 2.0.x and single processor operations are working without any issues. If i try to use any solver or utility with the -parallel flag, I get no execution, no errors and no output to the terminal / log file.

For example:
mpirun -np 6 pisoFoam -parallel > logRun& or foamJob -p pisoFoam
both return empty logs and 0 cpu activity.

If i try:
mpirun -np 6 pisoFoam -parallel
without dumping into a log, nothing is shown after executing the command, and I can ctrl+c to see:
mpirun: killing job...

Any ideas?

ganeshv November 2, 2011 18:02

Can you check if you can run a trivial hello world c++ program using mpirun first?

gfilip November 3, 2011 09:31


Here is a sample hello world which utilizes mpi. Found online:


#include <stdio.h>
#include <mpi.h>

int main (argc, argv)
    int argc;
    char *argv[];
  int rank, size;

  MPI_Init (&argc, &argv);      /* starts MPI */
  MPI_Comm_rank (MPI_COMM_WORLD, &rank);        /* get current process id */
  MPI_Comm_size (MPI_COMM_WORLD, &size);        /* get number of processes */
  printf( "Hello world from process %d of %d\n", rank, size );
  return 0;

I compile it using:
mpircc -o hello2 hello2.c
without any errors an executable is created.

Same issues when I try to run this using:
mpirun -np 2 hello2

No errors, but also no execution. This exec also does not run in serial using just ./hello2, but I am not sure as to whether it should with the MPI libs in it. I also reran ./Allwmake in the main OF dir just to make sure everything was compiled correctly.

I am using the openmpi that came with 2.0.x (mpirun (Open MPI) 1.5.3).

All times are GMT -4. The time now is 11:25.