Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Parallelization of v6p3 with auto-installer

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11109

  • HOLINGER
  • HOLINGER's Avatar
I want Telemac to run on the mpi-parallelized version. The auto-installer adds two version. --> win7gfors and win64mpi.
When I run Telemac, it uses the win7gfors-version. How can I switch to the other version?
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11112

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

Yes you can. The auto-installer should have created 2 desktop shortcuts, one for win7gfors and the other for parallel use. You have to use the appropriate short cut, which is setup to point to the appropriate configuration file.

Hope this helps.
Sébastien.
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11120

  • HOLINGER
  • HOLINGER's Avatar
I don't have any shortcuts on the desktop. It didn't create any shortcuts whatsoever.

I used the following statement in cmd to run a simulation (as adviced in this very forum):
(in folder python27)
python C:\opentelemac-mascaret\v6p3\scripts\python27\telemac2d.py -s C:\opentelemac-mascaret\v6p3\examples\sisyphe\dredgesimExample1\tel2.cas

By default it then uses the windows 7 scalar version (win7gfors).

in the \configs folder there are two files: systel.cfg and systel.parallel.cfg

Have these two files something to do which version is used?

and when I look into telemac2d.py there is a reference to runcode.py. And in this file there is some code-tags "parallel".

so I'm pretty confused on what to do.
Should I change some entries in the code? Or could I just simply insert a certain statement into cmd?
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11121

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

telemac2d.py (like any other module) launches runcode.py (in fact "telemac2d.py" is equivalent to "runcode.py telemac2d").

You can use the option -f to force the codes to point to the appropriate configuration file (systel.parallel.cfg in your case). That should run in parallel.

Note: The fact that you have to type "python C:\opentelemac-mascaret\v6p3\scripts\python27\telemac2d.py" from within "python27" means that your PATH and other variables were not set properly by the installer, possibly because you may not have admin write?). This looks like you may have bigger problems with the settings of your computers in addition to TELEMAC.

At this stage, I would recommend you un-install and start again from fresh.

Hope this helps.
Sébastien.
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11123

  • HOLINGER
  • HOLINGER's Avatar
Thank you for your advice.
So, assumed that everything will be setup properly: what would be the statement in cmd to start a simulation in parallel mode? What is the command after -f ?
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11140

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

If you type, say, telemac2d.py --help it shows all the options.
you can use -f potion to force the config file. The full command would therefore be:

telemac2d.py -s -f .\configs\systel-parallel.cfg t2d_cas-file.cas

(for instance, with appropriate file names)

Hope this helps.
Sébastien.
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 11 years 1 day ago #11141

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
PS: Can you please update your profile ? Thank you.
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 10 years 11 months ago #11178

  • HOLINGER
  • HOLINGER's Avatar
With this code, it works now:
python C:\opentelemac-mascaret\v6p3\scripts\python27\telemac2d.py -s -f C:\opentelemac-mascaret\v6p3\configs\systel.parallel.cfg C:\opentelemac-mascaret\v6p3\examples\telemac2d\break\t2d_break.cas

Now, it generates a folder containing several files inclusive "out_t2d_break.exe", which I can doubleclick upon. And then, the model is calculating. Is this intended to use the exe-file to run the model?

But now, it isn't working in parallel mode.

In the .cas-file I enterted the number of processors. But actually, it just uses one of them. therefore it is unparallelized and doesn't use my command. However even in the t2dcas file the number of processors is mentioned. Is there still an error somewhere?

stefan
Attachments:
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 10 years 11 months ago #11179

  • HOLINGER
  • HOLINGER's Avatar
There are somehow two different numbers of processors declared. (see image)


h2fb63af.JPG


No I don't see where the number "1" comes from.
The administrator has disabled public write access.

Parallelization of v6p3 with auto-installer 10 years 11 months ago #11180

  • HOLINGER
  • HOLINGER's Avatar
in the dictionary telemac2d.dico there is the tag "parallel processors" defined.

hf8a6adb.JPG


in the .f file there is written something else for this output:
h4422cc7.JPG
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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