Welcome, Guest
Username: Password: Remember me

TOPIC: How to run Parallel in TOMAWAC

How to run Parallel in TOMAWAC 8 years 7 months ago #20566

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Hi everyone

I have run some cases with TOMAWAC, but runs were very slow. So I want to test parallel installation in my computer, hopefully by that way, it runs faster.

Could you tell me how to test parallelism in my computer? e.g which codes? I am sure it is not like scalar computation: xxx.py yyy.cas

Best Regards

Huy
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20681

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi Huy,

First of all you need to compile a version of telemac with parallel libraries. If that is already done, then all you need is to specify the parallel configuration using the "-c" flag and then add the "--ncsize=x" at the command, where x is the number of processors you need to run the computation on.

Regards,
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

How to run Parallel in TOMAWAC 8 years 7 months ago #20684

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Thanks Costas.

So, for example, I have to type: telemac2d.py --ncsize=5 t2dmodel.cas? (my computer has 5 processors, and t2dmodel.cas is my steering file)

And you have mentioned about ''-c" flag, is it located in the python directory or MPI?

Thanks & Best Regards

Huy
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20685

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Huy,

The "-c" is the option to specify the parallel configuration in the systel.cfg file. For example if the parallel configuration in your systel file is "wintelmpi" the command would be:
telemac2d.py -c wintelmpi --ncsize=5 t2dmodel.cas
Do you have a parallel configuration compiled? You can post your systel.cfg file if you are not sure.

Regards,
Costas
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20686

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Hi Costas,

This my the file I take from C:\opentelemac-mascaret\v7p0\configs

Thanks & Best Regards

Huy
Attachments:
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20687

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Your only configuration is a parallel one. So I guess the "-c" flag is optional. Does this command work for you?
telemac2d.py -c wing64mpi --ncsize=5 t2dmodel.cas
Costas
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20688

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Dear Costas,

Here is the screen after I typed the command. Is it working? What do I do next?

Best Regards

Huy
parallel_2016-03-29.jpg
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20689

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
It seems to run OK. You can redirect the console output to a txt file so that it is easier to post. Use this command and post the file:
telemac2d.py -c wing64mpi --ncsize=5 t2dmodel.cas > output.txt
Costas
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20690

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Dear Costas,

I suspect it does not work :(

When I typed that command, the model run, keep pending for long time. So I have to stop it.

How can I do?

Thanks and Best Regards

Huy
Attachments:
The administrator has disabled public write access.

How to run Parallel in TOMAWAC 8 years 7 months ago #20693

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Everything looks OK except the computation. Have you registered your credentials with mpiexec/smpd service?
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran
Moderators: tfouquet

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.