FDS in Dula Core & Quad core computers

247 views
Skip to first unread message

Deepak

unread,
Mar 6, 2009, 2:37:52 AM3/6/09
to fds...@googlegroups.com
Dear All,

Does anybody knows how to utilize FDS with Dual core & Quad core computers.

Regards
Deepak

Gary

unread,
Mar 6, 2009, 8:18:33 AM3/6/09
to FDS and Smokeview Discussions
Deepak

Running FDS with Dual or Quad core computers is no difference with
Single core. The only difference is just that if you run the single
processor version FDS5 in a multi core computer. You could only make
use of one core out of the cores. Means that you cannot make full use
of the computer capacity.

If you want to make use of full power of multi-core computers, you
have to run multi-processor version (i.e. FDS5_MPI). To run the multi-
processor version, you have to install MPICH2 for Window platform or
LAM-MPI for Linux platform. After installing the program, you then
have to configure your computers in accordance with the FDS manual
(Section 3.1.2)

Gary YANG

Deepak

unread,
Mar 6, 2009, 8:26:23 AM3/6/09
to fds...@googlegroups.com
Gary,

Thank you very much, right now i am installing the MPICH2 , i will let you know the progress..

Thank for the help
Deepak

Deepak

unread,
Mar 13, 2009, 2:00:58 PM3/13/09
to fds...@googlegroups.com
Dear Gary & All,

My Parallel computing in FDS is working in both Dual core & Quad core machines successfully, i have checked one test case in single core, Dual core & Quad core machines. I am getting 1.56 times speedup in Dual core and 2.05 times speedup in Quad core machines.

I have tried with procedure mentioned in user guide, but somehow its not worked out. But I have tried following simple procedure, then it works very well and we can use it very well. Here i am writing down the procedure to install the FDS5 parallel version with MPICH2.

Installation procedure of FDS5 Parallel version in Dual core & Quad core Windows machines:

1. Download FDS5 Parallel version from FDS-SMV official site. And then install the parallel version of FDS5 ( FDS5_MPI)
2. Install MPICH2, before installing MPICH2 your system will asked you to install .net framework, i hope .net version 1.0 will work properly. After installing .net framework, you have to install MPICH2 and then you have to set environmental variables for MPICH2.
3. Then open command prompt and go to your destination folder (where your sample fds case is saved), and please don't forget to divide your mesh in to multiple parts ( no of meshes should be equal to number of processors)
4. Then type this command to run the FDS5 parallel version:
         mpiexec -n 2 fds5_mpi casename.fds   ( here -n 2 is number of processors you want to run in your quad core or dual core system, it should be equal to number of meshes, however lets say if you divided the domain in to 6 number of meshes then you have to type -n 6 instead of -n 2)

Best Regards
Deepak
CFD Engineer
Mechartes Researchers Pvt Ltd
TBIU Block, IIT Delhi, India.

Gary

unread,
Mar 14, 2009, 11:46:29 PM3/14/09
to FDS and Smokeview Discussions
Deepak

Congratulation indeed.

In your case, you can only utilise all cores within one PC. If you
would like to even further utilize the cores in other PCs. You need to
use the script in accordance with the manual. From my experience, the
tricks are that
1. for test, it is good to stop firewall in all PCs first.
2. as in normal private network, you might not have DNS server to
resolve the names of the PCs. It is better calling the PCs directly by
their IP addresses. My test setting (config.txt) for two PCs (i.e.
192.168.1.100 runs 2 meshes and 192.168.1.101 runs only 1 mesh, all
files are saved in 192.168.1.100 under directory fdsrun)is as follows-

exe \\192.168.1.100\fdsrun\fds5_mpi.exe jet_fan.fds
dir \\192.168.1.100\fdsrun\
hosts
192.168.1.100 2
192.168.1.101 1

You may check the IP address of the PCs by ipconfig command in
Windows. Further, you have to create accounts all PCs involved and get
the right to read and write on the directory "fdsrun".

Gary YANG




On Mar 14, 2:00 am, Deepak <deepak.gan...@gmail.com> wrote:
> Dear Gary & All,
>
> My Parallel computing in FDS is working in both Dual core & Quad core
> machines successfully, i have checked one test case in single core, Dual
> core & Quad core machines. I am getting* 1.56 times speedup in Dual core*and
> *2.05 times speedup in Quad core* machines.
>
> I have tried with procedure mentioned in user guide, but somehow its not
> worked out. But I have tried following simple procedure, then it works very
> well and we can use it very well. Here i am writing down the procedure to
> install the FDS5 parallel version with MPICH2.
>
> *Installation procedure of FDS5 Parallel version in Dual core & Quad core
> Windows machines:*
>
> *1.* Download FDS5 Parallel version from FDS-SMV official site. And then
> install the parallel version of FDS5 ( FDS5_MPI)
> *2.* Install MPICH2, before installing MPICH2 your system will asked you to
> install *.net* framework, i hope .net version 1.0 will work properly. After
> installing *.net* framework, you have to install MPICH2 and then you have to
> set environmental variables for MPICH2.
> *3.* Then open command prompt and go to your destination folder (where your
> sample fds case is saved), and please don't forget to divide your mesh in to
> multiple parts ( no of meshes should be equal to number of processors)
> *4.* Then type this command to run the FDS5 parallel version:
>          *mpiexec -n 2 fds5_mpi casename.fds*   ( here *-n 2* is number of
> processors you want to run in your quad core or dual core system, it should
> be equal to number of meshes, however lets say if you divided the domain in
> to 6 number of meshes then you have to type* -n 6* instead of *-n 2*)
>
> Best Regards
> Deepak
> CFD Engineer
> Mechartes Researchers Pvt Ltd
> TBIU Block, IIT Delhi, India.
>
> On Fri, Mar 6, 2009 at 6:56 PM, Deepak <deepak.gan...@gmail.com> wrote:
> > Gary,
>
> > Thank you very much, right now i am installing the MPICH2 , i will let you
> > know the progress..
>
> > Thank for the help
> > Deepak
>

Karina

unread,
Mar 16, 2009, 8:35:11 AM3/16/09
to FDS and Smokeview Discussions
Dear All,

Can anyone write the procedure to use all cores of a quad core cpu in
Linux?

Thanks.

Bora

Deepak

unread,
Mar 16, 2009, 8:52:38 AM3/16/09
to fds...@googlegroups.com
Dear Krina,

I have not tried in Linux,but i have tried in windows, you can refer to my previous post. For linux just follow the procedure in user guide, if it will works OK, otherwise i will try to check in couple of days.


Best Regards
Deepak
CFD Engineer
Mechartes Researchers Pvt Ltd
TBIU Block, IIT Delhi, India.

 

szilagyi csaba

unread,
Mar 16, 2009, 10:06:15 AM3/16/09
to fds...@googlegroups.com
Hello,

Has somebody got experience?
What's the difference beetween 2 machine with dual core CPUs and 1
quad core CPU machine?


2009/3/16 Deepak <deepak...@gmail.com>:
--
Szilágyi Csaba
Hungary
5000 Szolnok
Baross G. utca/street 41. C. I./1.
Tel:+36-70-3748812
web:www.tuzmodell.hu
email: csaba.s...@gmail.com

Karina

unread,
Mar 16, 2009, 4:39:53 PM3/16/09
to FDS and Smokeview Discussions
Dear Deepak,

Since we want to make use of the memory capabilities of an 64 bit
operating system we installed Linux (UBUNTU Ver. 8.1). There exist 64
bit versions of windows yet we know that windows is not as efficient
as Linux in memory usage.

Any help would be appreciated in running FDS in multiple-core cpus.

Thanks.

On 16 Mart, 14:52, Deepak <deepak.gan...@gmail.com> wrote:
> Dear Krina,
>
> I have not tried in Linux,but i have tried in windows, you can refer to my
> previous post. For linux just follow the procedure in user guide, if it will
> works OK, otherwise i will try to check in couple of days.
>
> Best Regards
> Deepak
> CFD Engineer
> Mechartes Researchers Pvt Ltd
> TBIU Block, IIT Delhi, India.
>

chris_cfd

unread,
Mar 17, 2009, 8:03:18 PM3/17/09
to FDS and Smokeview Discussions
What program are you using to implement MPI? If you are using lam mpi
I think you just write your hostfile to say

10.x.x.x cpu=4

for the machine with the quad core. Then you run lamboot hostfile as
per normal and when you begin your fds with at least 4 meshes, it
should allocate each of the meshes to a different process and I think
ubuntu will automatically start each process on a different processor.
I may be wrong, but I think thats how its done.

revanth krishna

unread,
Mar 18, 2009, 5:35:34 AM3/18/09
to fds...@googlegroups.com
hai everyone,

i had successfully running parallel in one cpu ..

know i want to connect two cpus (windows platform)

what are the basics steps i have to follow ?

what are the necessary directories have to be shared between two ...

thanks in advance..

Karina

unread,
Mar 18, 2009, 3:11:00 PM3/18/09
to FDS and Smokeview Discussions
We are going to use LAM-MPI. I'll try what you tell above and let you
know of the results.

Thanks.

Bora

FOOLSTONE

unread,
Mar 19, 2009, 9:28:23 PM3/19/09
to FDS and Smokeview Discussions
1. Install Fortran Compiler & C Compiler[I prefer to Intel Fortran
Compiler]
2. Install MPICH2 or LAM/MPI.
3. Download FDS source code & Makefile
4. Make a mpi version fds

Gary

unread,
Mar 21, 2009, 12:41:42 AM3/21/09
to FDS and Smokeview Discussions
Chris

I have problems in running the lamboot. When I run the lamboot the
following error message appear

n-1<18063>ssi:boot:base:linear: booting n0 (10.12.65.189)
n-1<18063>ssi:boot:base:linear: Failed to boot n0 (10.12.65.189)
n-1<18063>ssi:boot:base:linear: aborted

Could you give more information for help

Gary YANG

Gary

unread,
Mar 22, 2009, 4:52:59 AM3/22/09
to FDS and Smokeview Discussions
Chris_cfd

Having tried Lam-MPI a whole day, now I am able to start simulation
with multi cores in a PC (password less for SSH connection has been
done), but failed to start simulation across PCs.

Now the error message I got is :-
LAM tried to use the remote agent commend "/usr/bin/ssh" to invoke
the following command

/usr/bin/ssh -x -a 10.12.65.127 -n tkill

Any experts have ideas

Gary YANG


On 3月21日, 下午12時41分, Gary <garyyang1...@yahoo.com.hk> wrote:
> Chris
>
> I have problems in running the lamboot. When I run the lamboot the
> following error message appear
>
> n-1<18063>ssi:boot:base:linear: booting n0 (10.12.65.189)
> n-1<18063>ssi:boot:base:linear: Failed to boot n0 (10.12.65.189)
> n-1<18063>ssi:boot:base:linear: aborted
>
> Could you give more information for help
>
> Gary YANG
>
> On Mar 18, 8:03 am, chris_cfd <c.abl...@cfdonline.com.au> wrote:
>
> > What program are you using to implement MPI? If you are using lam mpi
> > I think you just write your hostfile to say
>
> > 10.x.x.x cpu=4
>
> > for the machine with the quadcore. Then you run lamboot hostfile as

Gary

unread,
Mar 22, 2009, 8:06:04 AM3/22/09
to FDS and Smokeview Discussions
Dear All

Finally, I solve the problems(ie. just including the path in .bashrc
file). Now I could run the lamboot successfully among the PCs. The
remaining problems sharing and mounting the directory for simulation.

Gary YANG

chris_cfd

unread,
Mar 22, 2009, 7:41:18 PM3/22/09
to FDS and Smokeview Discussions
Sorry I didn't respond Gary, I generally only read this forum when I
am at work, so I didn't see your posts till today. Seems like you got
it all sorted though.

bobby

unread,
Mar 23, 2009, 9:16:34 AM3/23/09
to FDS and Smokeview Discussions

Hello everyone!

Does anybody know what does it mean: when i try to run fds5-mpi file -
windows ansewers " ... can not run, fmpich2.dll isn't found. the
reinstalling can solve this problem" but reinstalling doesn't help.

Best Regards
Oleg
FIRE Engineer
Moscow, Russia

Kevin

unread,
Mar 23, 2009, 9:20:54 AM3/23/09
to FDS and Smokeview Discussions
You probably need to set PATH variables manually.

revanth krishna

unread,
Mar 23, 2009, 9:23:41 AM3/23/09
to fds...@googlegroups.com
hi Bobby

once refer  the installation procedure written by Mr.Deepak in this above post

have to installed .net frame work  ?

first install this then install mpich2.

bobby

unread,
Mar 23, 2009, 9:34:31 AM3/23/09
to FDS and Smokeview Discussions

Kevin,

sorry, but I'm afraid, I don't understand what do you mean.

The problem is next: I want to use every of four cores of my CPU (quad-
core), like Deepak did.
I use windows-platform.

thanks in advance..

Oleg/

revanth krishna

unread,
Mar 23, 2009, 9:50:33 AM3/23/09
to fds...@googlegroups.com
As kevin said set your PATH manually,

right click mycomputer go to properties in that and then to advanced

know go to Environmental variables in that edit PATH

for example PATH is like this :  %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\NIST\FDS\Utilities;C:\PROGRA~1\NIST\FDS;C:\PROGRA~1\NIST\Smokeview;C:\PROGRA~1\NIST

edit that path with the location of the MPICH2 bin in your pc

after adding it looks like this

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\NIST\FDS\Utilities;C:\PROGRA~1\NIST\FDS;C:\PROGRA~1\NIST\Smokeview;C:\PROGRA~1\NIST ;" C:Program Files\MPICH2\bin"

Deepak

unread,
Mar 23, 2009, 9:52:13 AM3/23/09
to fds...@googlegroups.com
Bobby,

see my previous posts, there i have written step by step procedure. if it does not work let me know.

Keep in mind , while utilizing the 4 cores, you need to divide your mesh in to 4 parts ( mesh cells for each core should be approx same for getting the good speed up)

BR
Deepak

On Mon, Mar 23, 2009 at 7:04 PM, bobby <fatd...@mail.ru> wrote:

Deepak

unread,
May 5, 2009, 5:55:51 AM5/5/09
to nick, fds...@googlegroups.com
Hello Nick,

To change the single version of fds input file to parallel version of fds, you need to increase the number of meshes.

Lets say if you are using 2 processors then you have decompose your mesh in to 2 parts and all meshes should be almost equal, to get the equal performance from all the processors.

To enable this in windows you have to follow the steps given in my previous post.

Best Regards
Deepak
Mechartes Researchers Pvt Ltd


On Tue, May 5, 2009 at 2:25 PM, nick <shanka...@yahoo.co.in> wrote:
Hello Deepak,

I have been looking for an input file for a parallel computation with
FDS. I am new and have successfully used serial version of FDS. It
would be nice if you could guide me on what are the changes that I
should make on serial version of FDS input file and how to post-
process the results from parallel computation.

Thank you and I look forward to hear from you.


Best regards,
shankar



On Mar 23, 3:52 pm, Deepak <deepak.gan...@gmail.com> wrote:
> Bobby,
>
> see my previous posts, there i have written step by step procedure. if it
> does not work let me know.
>
> Keep in mind , while utilizing the 4 cores, you need to divide your mesh in
> to 4 parts ( mesh cells for each core should be approx same for getting the
> good speed up)
>
> BR
> Deepak
>
Reply all
Reply to author
Forward
0 new messages