Please wait...
×

Error

Posted Sun, 02 Apr 2017 10:52:26 GMT by Umasankar Panda
Hello 

I have prepared a number of model input files, and want to carry out several simulations in a row using an ASCII batch file containing the prompts for each simulation. The batch file is running fine, but it runs using single core.

Can anyone help me to run the batch file / multiple setups under batch file using Parallelization ? What is the option to mention in the batch commands to run using Parallelization?

Thanks in advance

U S Panda
Posted Mon, 03 Apr 2017 15:06:01 GMT by Christian Tomsu Germany
Hi,

you can use the MZLaunch - Engine.

See here:
http://faq.dhigroup.com/default.asp?module=MIKE+FLOOD&ID=366
or
http://faq.dhigroup.com/default.asp?module=MIKE+21&ID=57#answer

There are several parameters available.

Bests Christian


Posted Mon, 03 Apr 2017 15:46:50 GMT by Christian Tomsu Germany
Hi,

concerning the batch with GPU you may use the following command:
start /w MzLaunch.exe SIM.m21fm -gpu NUMBER_OF_GPUS GPU1 GPU2 GPUn

Hope that helps.

Bests Christian
Posted Fri, 07 Apr 2017 09:32:46 GMT by Umasankar Panda
Thank you Dr. Christian for the information.

Well, my issues is with invoking distributed memory approach (MPI) Parallelization during batch simulation.

Is there any option/ command I should specify in the *.bat file for the above requirement.

Regards,
Panda
Posted Fri, 21 Apr 2017 12:41:59 GMT by Christian Tomsu Germany
Hi,

you can use this sequence:

set Number_of_Cores=8
mpiexec -n %Number_of_Cores% -localonly FemEngineHDMPI.exe lake.m21fm

Bests Christian
Posted Thu, 27 Apr 2017 11:20:28 GMT by Umasankar Panda
Sir,

I have used the following lines but still it is not running in MPI mode, it is fine with normal mode only. Please do correct me for the following execution.


[b]path=C:\Users\Admin\Desktop\pwq_coast; %DHI_MIKE_2014%;

set Number_of_Cores=16

start /wait MzLaunch.exe mpiexec -n 16 -localonly FemEngineHDMPI.exe case_1_opening.m21fm -x
start /wait MzLaunch.exe mpiexec -n 16 -localonly FemEngineHDMPI.exe case_2_opening.m21fm -x
start /wait MzLaunch.exe mpiexec -n 16 -localonly FemEngineHDMPI.exe case_3_opening.m21fm -x
start /wait MzLaunch.exe mpiexec -n 16 -localonly FemEngineHDMPI.exe case_4_opening.m21fm -x
[/b]
Posted Fri, 28 Apr 2017 07:34:26 GMT by Christian Tomsu Germany
Hi,

looks nice.
Does it work ?

Bests
Posted Fri, 28 Apr 2017 07:39:14 GMT by Umasankar Panda
Hi

No, this is not working for MPI mode, its only works with normal mode.

Please do correct the code for MPI run in batch mode.

Regards
Posted Tue, 09 May 2017 07:59:46 GMT by Mathieu Hellegouarch
Hi Panda,

You can see in the MIKE Zero manual, that the list of options from the MZLaunch utility can be called using this command line:
C:\"Program Files (x86)"\DHI\2017\bin\x64\MZLaunch.exe -h
So if you run this from a command prompt, you then get the MPI option which is:
-mpi X, where X is the number of subdomains to use.

So the final command line may look like this:
Start /wait C:\"Program Files (x86)"\DHI\2017\bin\x64\Mzlaunch.exe case_1_opening.m21fm -mpi 4 -x
if you want to use 4 subdomains with version 2017.

Best regards,
Mathieu
Posted Wed, 14 Jun 2017 03:51:29 GMT by Umasankar Panda
Dear Dr Matheiu,

Thank you very much for your reply. I tried with your options but i am getting the error

[i]"The command "mpiexec -n 4 -localonly "C\program files (x86)\dhi\2014\bin\x64\femenginehdMPI.exe" "case-1-Sewage.m21fm" could not be launched.

system error message:
The system cannot find the file specified. [/i]

Is it with MPIEXEC installation problem, if so, how to resolve it?
Thank you.

Panda
Posted Wed, 14 Jun 2017 08:16:45 GMT by Christian Tomsu Germany
Hi,

have you tried to specify the absolute path to your m21fm - file ?

Bests Christian
Posted Wed, 14 Jun 2017 08:19:18 GMT by Umasankar Panda
Hi

Yes, I have given the following path

path=C:\Users\Admin\Documents\MIKE Zero Projects\Puducherry_Satya\Case Studies setup;%DHI_MIKE_2014%;

start /wait MzLaunch.exe -exit 20%increase_april.m21fm -mpi 4 -x
start /wait MzLaunch.exe -exit 20%increase_NOV.m21fm -mpi 4 -x
start /wait MzLaunch.exe -exit 50%increase_april.m21fm -mpi 4 -x
start /wait MzLaunch.exe -exit 50%increase_NOV.m21fm -mpi 4 -x
Posted Mon, 19 Jun 2017 10:40:58 GMT by Christian Tomsu Germany
Hi uspanda,

could it be, that the % in the filename should be replaced by something other ???
The % is normally reserved for variables.

Bests Christian
Posted Wed, 27 May 2020 09:14:19 GMT by Vinh Ngoc
Hi,

I am trying to make the batch file to run Mike URBAN with Runoff, Network, and 2D overland options at the same times.

Actually, I didn't find any information about how to make the command except for how to call "MOUSESimLaunch.exe"
Could you please help me out?

Best,
Tran

You must be signed in to post in this forum.