CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

parallel execution not starting

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2011, 17:46
Default parallel execution not starting
  #1
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 17
gfilip is on a distinguished road
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?
gfilip is offline   Reply With Quote

Old   November 2, 2011, 18:02
Default
  #2
Member
 
Ganesh Vijayakumar
Join Date: Jan 2010
Posts: 44
Rep Power: 16
ganeshv is on a distinguished road
Can you check if you can run a trivial hello world c++ program using mpirun first?
ganeshv is offline   Reply With Quote

Old   November 3, 2011, 09:31
Default
  #3
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 17
gfilip is on a distinguished road
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).
gfilip is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Own boundary condition modified simpleFoam erorr in parallel execution sponiar OpenFOAM Running, Solving & CFD 1 August 27, 2008 10:16
Problems starting parallel fluent on linux HSeldon FLUENT 6 June 13, 2008 12:25
Parallel execution of customized solver otsuki OpenFOAM Running, Solving & CFD 2 March 24, 2006 08:47
Parallel interfom trouble in execution mer OpenFOAM Running, Solving & CFD 6 October 18, 2005 06:45
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 13:00


All times are GMT -4. The time now is 14:36.