Software Archive
Read-only legacy content
17061 Discussions

running mpi program in mic

Balajee_G_
Beginner
401 Views

Hi

       I have compile OpenFOAM for mic architecture. I am able to run the program without any trouble. But I am having trouble with running openfoam in parallel. The way OpenFOAM works in parallel is you decompose the mesh in to sub domains and put the folders in to processor 1 2 etc folders 

But when I issue the command to run the program in parallel, it is creating two seperate instances of the same program.

export I_MPI_MIC=1

mpiexec.hydra -np 2 ./pisoFoam

I am adding some of the first lines of output

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Create mesh for time = 0

 

As you can see the program is being executed twice. Am I doing something wrong here? Could you please help me.

0 Kudos
1 Reply
Frances_R_Intel
Employee
401 Views

As far as it creating two separate instances of the program when you run "mpiexec.hydra -np 2 ./pisoFoam", yes, that is what the '-np 2' is telling it to do. Could there be some system out there where the two instances of the program are instead handled as threads in a single program? I don't know the MPI standard well enough to say if that is allowed or not, but it wouldn't surprise me. However, my expectation would be to see two separate processes.

0 Kudos
Reply