How to run parallel simulation in one computer (one CPU with 6cores and 12lines)

1,940 views
Skip to first unread message

eric xu

unread,
Jan 22, 2013, 10:34:15 PM1/22/13
to fds...@googlegroups.com

I have a question about FDS parallel running in Win7 (64) system.

fds5_mpi_win_64 can successfully run the FDS case, however, it shows below information:

The process 0 of 0 is running on ....

Mesh 1 is assigned to Process 0

Mesh 2 is assigned to Process 0

Mesh 3 is assigned to Process 0

......

i.e. all meshes are assigned to Process 0 and the real parallel simulation is not started and speed is slow....

Any other setting I need to perform for the parallel simulation in one PC (one CPU with 6 cores and 12 lines)?


palinda bandara

unread,
Jan 23, 2013, 4:18:52 AM1/23/13
to fds...@googlegroups.com
This happened to me also Eric. This is the way I followed to make it right.
 
1. Download MPICH2 from the below link if it has not been downloaded in your machine.
http://www.mpich.org/downloads/   (scroll and download platform: Windows x86_64)
 
2. Then in MS DOS type fds5_mpi_win_64 to make sure it works. You may have to restart the computer if it does not work.
 
3. First modify the FDS input file as in the below example. It is required to assign processors to each mesh.
 
&MESH ID='MESH-e-a', IJK=54,90,24, XB=-24.4,-13.4,-27.0,-10.0,-0.3,4.2, MPI_PROCESS=0/
&MESH ID='MESH', IJK=51,90,24, XB=-13.4,-3.0,-27.0,-10.0,-0.3,4.2, MPI_PROCESS=1/
&MESH ID='MESH-e-b', IJK=51,90,24, XB=-13.4,-3.0,-10.0,7.0,-0.3,4.2, MPI_PROCESS=2/
&MESH ID='MESH-f-a', IJK=54,90,24, XB=-24.4,-13.4,-10.0,7.0,-0.3,4.2, MPI_PROCESS=3/
&MESH ID='MESH-c', IJK=80,90,24, XB=-40.8,-24.4,-27.0,-10.0,-0.3,4.2, MPI_PROCESS=4/
&MESH ID='MESH-d', IJK=80,90,24, XB=-40.8,-24.4,-10.0,7.0,-0.3,4.2, MPI_PROCESS=5/
&MESH ID='MESH-a', IJK=48,45,12, XB=-60.0,-40.8,-27.0,-10.0,-0.3,4.2, MPI_PROCESS=6/
&MESH ID='MESH-b', IJK=48,45,12, XB=-60.0,-40.8,-10.0,7.0,-0.3,4.2, MPI_PROCESS=7/
 
4. Then in MS DOS (Right click on it & open it as the Administrator) set the path to "MPIEXEC.EXE". (It is installed in "C:\MPICH2\bin")
 
5. Now in MS DOS type "mpiexec -n 8 -localonly fds5_mpi_win_64 "<set the FDS input file path (example: "c:\new folder\simulation.fds")>" . In FDS6 typing just "fds_mpi" is sufficient instead of "fds_mpi_win_64".
 
That is it. Hope this helps.
 
Regards
Palinda



--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To post to this group, send email to fds...@googlegroups.com.
To unsubscribe from this group, send email to fds-smv+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/fds-smv/-/N_OpTnsLO4IJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kevin

unread,
Jan 23, 2013, 8:35:19 AM1/23/13
to FDS and Smokeview Discussions
Note that the use of MPI_PROCESS=... on the MESH line is not required.
By default, FDS assigns a single MESH to each process invoked by the
MPI client. If the number of MESHes is not equal to the number of
processes, FDS will assign the extra MESHes to the same process. Use
MPI_PROCESS only if you want to control which MESH is assigned to
which process, keeping in mind that the MPI_PROCESS values should be
monotonically increasing.

On Jan 23, 4:18 am, palinda bandara <palinda...@gmail.com> wrote:
> This happened to me also Eric. This is the way I followed to make it right.
>
> 1. Download MPICH2 from the below link if it has not been downloaded in
> your machine.http://www.mpich.org/downloads/  (scroll and download platform: Windows
> x86_64)
>
> 2. Then in MS DOS type fds5_mpi_win_64 to make sure it works. You may have
> to restart the computer if it does not work.
>
> 3. First modify the FDS input file as in the below example. It is required
> to assign processors to each mesh.
>
> &MESH ID='MESH-e-a', IJK=54,90,24, XB=-24.4,-13.4,-27.0,-10.0,-0.3,4.2, MPI
> _PROCESS=0/
> &MESH ID='MESH', IJK=51,90,24, XB=-13.4,-3.0,-27.0,-10.0,-0.3,4.2, MPI
> _PROCESS=1/
> &MESH ID='MESH-e-b', IJK=51,90,24, XB=-13.4,-3.0,-10.0,7.0,-0.3,4.2, MPI
> _PROCESS=2/
> &MESH ID='MESH-f-a', IJK=54,90,24, XB=-24.4,-13.4,-10.0,7.0,-0.3,4.2, MPI
> _PROCESS=3/
> &MESH ID='MESH-c', IJK=80,90,24, XB=-40.8,-24.4,-27.0,-10.0,-0.3,4.2, MPI
> _PROCESS=4/
> &MESH ID='MESH-d', IJK=80,90,24, XB=-40.8,-24.4,-10.0,7.0,-0.3,4.2, MPI
> _PROCESS=5/
> &MESH ID='MESH-a', IJK=48,45,12, XB=-60.0,-40.8,-27.0,-10.0,-0.3,4.2, MPI
> _PROCESS=6/
> &MESH ID='MESH-b', IJK=48,45,12, XB=-60.0,-40.8,-10.0,7.0,-0.3,4.2, MPI
> _PROCESS=7/
>
> 4. Then in MS DOS (Right click on it & open it as the Administrator) set
> the path to "MPIEXEC.EXE". (It is installed in "C:\MPICH2\bin")
>
> 5. Now in MS DOS type "mpiexec -n 8 -localonly fds5_mpi_win_64 "<set
> the FDSinput file path (example: "c:\new folder\simulation.

palinda bandara

unread,
Jan 23, 2013, 11:37:02 AM1/23/13
to fds...@googlegroups.com
Thanks for letting know Mr. Kevin.
 
@Eric: In my previous email MPIEXEC.EXE path should be "C:\Program Files\MPICH2\Bin". Sorry for the mistake.


eric xu

unread,
Jan 25, 2013, 6:01:50 AM1/25/13
to fds...@googlegroups.com
Thank you all and will try to solve it per your adivse!

在 2013年1月23日星期三UTC+8上午11时34分15秒,eric xu写道:
Reply all
Reply to author
Forward
0 new messages