Welcome, Guest
Username: Password: Remember me

TOPIC: running T2D on virtual machine Ubuntu

running T2D on virtual machine Ubuntu 12 years 1 month ago #5924

  • mathieu5roy
  • mathieu5roy's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Thank you received: 7
Hi

I'm a T2D beginner.

I've installed T2D on virtual machine of Ubuntu v 12.04 (32bit) from a win7 64 bit PC. I've downloaded the source code available on the site ubugopenmpi. I use VMware Player software to do this.

The reason i'm doing this is to use gfortran compiler (which is free compared to Intel visual) to be able to run v6.2 in parallel mode and get a bit more juice out of my quad-core PC.

I have now installed and compiled the code sucessfully. There were no error code during the process. I compiled the 2 default config : ubugopenmpi and ubugfortran.

I'm trying to launch Malpasset test case cas2.txt in parallel mode and I get the following :


Running your CAS file for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> configuration: ubugfopenmpi
+> root: /home/mathieu5roy/Desktop/ubugfopenmpi
+> version v6p2


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Running cas2.txt with telemac2d under /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

... reading module dictionary
... simulation en Francais avec cas2.txt
copying: princi.f /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/t2dfort.f
re-writing: /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/T2DCAS
copying: telemac2dv6p2.dico /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/T2DDICO
copying: ref2 /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/T2DREF
copying: geo /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/T2DGEO
copying: cli.txt /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/T2DCLI
partitioning: T2DREF
+> /home/mathieu5roy/Desktop/ubugfopenmpi/parallel/parallel_v6p2/ubugfopenmpi/partel < PARTEL.PAR >> partel_T2DREF.log
partitioning: T2DGEO
+> /home/mathieu5roy/Desktop/ubugfopenmpi/parallel/parallel_v6p2/ubugfopenmpi/partel < PARTEL.PAR >> partel_T2DGEO.log


Running your simulation :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


/usr/bin/mpiexec -wdir /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s -n 2 <hosts> /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/out_princi
_____________
runcode::main:
/home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset:
|runCAS: fail to run
| /usr/bin/mpiexec -wdir /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s -n 2 <hosts> /home/mathieu5roy/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset/cas2.txt_2012-10-16-01h28min00s/out_princi
mathieu5roy@ubuntu:~/Desktop/exemples/telemac2d/tel2d_v6p0/test.fr/malpasset$


I tried different other examples in scalar and everything seems to be working fine.

My question is :

Am I doing something wrong when calling cas file for parallel mode or virtual machine is just not compatible with it.

I'm attaching my systel.cfg just in case I did something wrong in it.

many thanks

Mathieu
The administrator has disabled public write access.

running T2D on virtual machine Ubuntu 12 years 1 month ago #5941

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
I an see the attached file.

By the way, you did really good in setting a virtual box. It should work just the same. Try looking in the cfg available under config to check commands etc. Sometimes you need to use mpif90 for creating the executable for instance.

Hope this helps,
Sébastien
The administrator has disabled public write access.
The following user(s) said Thank You: mathieu5roy

running T2D on virtual machine Ubuntu 12 years 1 month ago #5947

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hi,

As stated by Sébastien, it should work (though I didn't try by myself)

A few things to check :
- try to run mpirun/mpiexec from the TMP directory and look at the errors
- as you are computing on a single PC, you can remove <hosts> from your sequence line.
- by the way, <hosts> is an argument of mpiexec which goes with a -machinefile or -host option

Regards,

Fabien
The administrator has disabled public write access.
The following user(s) said Thank You: mathieu5roy

running T2D on virtual machine Ubuntu 12 years 1 month ago #5950

  • mathieu5roy
  • mathieu5roy's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Thank you received: 7
Thanks Fabien and Sébastien,

Removing <host> from cmd_mpiexec in the .cfg solve the problem.

I was using the windows scalar version with g95 before and now I can run parallel mode with gfortran under a VM... The computing time difference is awesome.

Thanks again


Mathieu
The administrator has disabled public write access.
Moderators: borisb

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