CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   parallel execution not starting (https://www.cfd-online.com/Forums/openfoam-solving/94005-parallel-execution-not-starting.html)

gfilip November 2, 2011 16:46

parallel execution not starting
 
Hello,

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 17:02

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

gfilip November 3, 2011 08:31

Ganesh,

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

Code:

#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 );
  MPI_Finalize();
  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 05:38.