- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page