Welcome, Guest
Username: Password: Remember me

TOPIC: Error compiling Telemac v7p1r1 in parallel on Windows 7

Error compiling Telemac v7p1r1 in parallel on Windows 7 8 years 5 months ago #21888

  • bmater
  • bmater's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 49
  • Thank you received: 3
Hi,

I recently downloaded the latest version, v7p1r1, and am having trouble compiling the parallel version of the code on my Windows 7 machine. I was able compile the serial version without any issues by executing the following comand from the C:\opentelemac-mascaret\v7p1r1\scripts\python27 directory:
python compileTELEMAC.py -f C:\opentelemac-mascaret\v7p1r1\configs\systel.cis-windows7.cfg -c win7gforsdbg -r C:\opentelemac-mascaret\v7p1r1

When I try to do something similar for the parallel version using the parallel configuration using:
python compileTELEMAC.py -f C:\opentelemac-mascaret\v7p1r1\configs\systel.cis-windows7.cfg -c win7gforpdbg -r C:\opentelemac-mascaret\v7p1r1

I get a series of errors from "forking.py" stating "ImportError: No module named compiletelemac." I have not made any edits to systel.cis-windows7.cfg, other than to update the paths (from C:\opentelemac\... to C:\opentelemac-mascaret\...) under the win7gforpdbg configuration. I'm using the following text:
# ____/ windows 7 gfortran parallel debug /______________________________/
[win7gforpdbg]
#
cmd_obj: gfortran -c -g -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -lm -o <exename> <objs> <libs>
#
mpi_cmdexec: mpiexec.exe -wdir <wdir> -n <ncsize> <exename>
mpi_hosts:
#
mods_all: -I <config>
#
sfx_obj: .o
#
incs_parallel: -I C:\opentelemac-mascaret\mpich2\include
incs_special: -I C:\opentelemac-mascaret\mpich2\include
libs_partel: C:\opentelemac-mascaret\lib\metis-5.0.2\lib\libmetis.a
libs_all: C:\opentelemac-mascaret\mpich2\lib\libfmpich2g.a

Perhaps something else is wrong(?). Any insight would be appreciated!

Cheers,
Ben
The administrator has disabled public write access.

Error compiling Telemac v7p1r1 in parallel on Windows 7 8 years 5 months ago #21890

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

Could you a couple thing:
- Run the command config.py and post the answer.
- Post the error you have at the compilation

CHeers
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Error compiling Telemac v7p1r1 in parallel on Windows 7 8 years 5 months ago #21924

  • bmater
  • bmater's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 49
  • Thank you received: 3
Hi Yugi,

When I run config.py I get
C:\opentelemac-mascaret\v7p1r1\scripts\python27>python config.py

Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                _    _                    ___   _____
               | |  | |                  |__ \ |___  |
  _ __   _   _ | |_ | |__    ___   _ __     ) |  _/ /
 | '_ \ | | | || __|| '_ \  / _ \ | '_ \   / /  |_ _|
 | |_) || |_| || |_ | | | || (_) || | | | / /_   / /
 | .__/  \__, | \__||_| |_| \___/ |_| |_||____| /_/
 | |      __/ |
 |_|     |___/
                           _  _    _____    __   _  _    ____
                         _| || |_ |___  |  / /  | || |  |___ \
  _ __   ___ __   __    |_  __  _|  _/ /  / /_  | || |_   __) |
 | '__| / _ \\ \ / /     _| || |_  |_ _| | '_ \ |__   _| |__ <
 | |   |  __/ \ V /  _  |_  __  _|  / /  | (_) |   | |   ___) |
 |_|    \___|  \_/  (_)   |_||_|   /_/    \___/    |_|  |____/


... parsing configuration file: C:\opentelemac-mascaret\v7p1r1\configs\systel.ci
s-windows7.cfg


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


Key root required non empty field

The error I get when I attempt to compile is in the attached text file:

File Attachment:

File Name: win7gforp-windows7_compile_error.txt
File Size: 26 KB


Thanks for your help,
Ben
The administrator has disabled public write access.

Error compiling Telemac v7p1r1 in parallel on Windows 7 8 years 5 months ago #21925

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Could you try :
  • adding the option "-j1" to compileTELEMAC.py
  • posting what is in C:\v7p1r1\builds\win7gforpdbg\lib\utils\special


Hope it helps
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Error compiling Telemac v7p1r1 in parallel on Windows 7 8 years 5 months ago #21932

  • bmater
  • bmater's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 49
  • Thank you received: 3
  • It looks like I get the same error message with the -j1 option (see attached).
  • There is nothing in the C:\v7p1r1\builds\win7gforpdbg\lib\utils\special directory:
C:\opentelemac-mascaret\v7p1r1\builds\win7gforpdbg\lib\utils\special>dir
 Volume in drive C has no label.
 Volume Serial Number is B039-0042

 Directory of C:\opentelemac-mascaret\v7p1r1\builds\win7gforpdbg\lib\utils\speci
al

06/07/2016  06:56 PM    <DIR>          .
06/07/2016  06:56 PM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  24,122,077,184 bytes free

To revisit your question on running config.py, when attach the root flag I get the following output which looks correct:
C:\opentelemac-mascaret\v7p1r1\scripts\python27>python config.py -r C:\opentelem
ac-mascaret\v7p1r1


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

         _____         __        __
        |___  |       /_ |      /_ |
 __   __  _/ /  _ __   | | _ __  | |
 \ \ / / |_ _| | '_ \  | || '__| | |
  \ V /   / /  | |_) | | || |    | |
   \_/   /_/   | .__/  |_||_|    |_|
               | |
               |_|
                           _  _    _____    __   _  _    ____
                         _| || |_ |___  |  / /  | || |  |___ \
  _ __   ___ __   __    |_  __  _|  _/ /  / /_  | || |_   __) |
 | '__| / _ \\ \ / /     _| || |_  |_ _| | '_ \ |__   _| |__ <
 | |   |  __/ \ V /  _  |_  __  _|  / /  | (_) |   | |   ___) |
 |_|    \___|  \_/  (_)   |_||_|   /_/    \___/    |_|  |____/


... parsing configuration file: C:\opentelemac-mascaret\v7p1r1\configs\systel.ci
s-windows7.cfg


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

win7gforsdbg:

    +> root:     C:\opentelemac-mascaret\v7p1r1
    +> module:   splitsel / tomawac / damocles / partel / parallel / postel3d /
artemis / telemac3d / diffsel / gretel / api / special / stbtel / waqtel / bief
/ hermes / sisyphe / telemac2d


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

win7telpdbg:

    +> root:     C:\opentelemac-mascaret\v7p1r1
    +> module:   splitsel / tomawac / damocles / partel / parallel / postel3d /
artemis / telemac3d / diffsel / gretel / api / special / stbtel / waqtel / bief
/ hermes / sisyphe / telemac2d


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

win7gforpdbg:

    +> root:     C:\opentelemac-mascaret\v7p1r1
    +> module:   splitsel / tomawac / damocles / partel / parallel / postel3d /
artemis / telemac3d / diffsel / gretel / api / special / stbtel / waqtel / bief
/ hermes / sisyphe / telemac2d


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

win7telsdbg:

    +> root:     C:\opentelemac-mascaret\v7p1r1
    +> module:   splitsel / tomawac / damocles / partel / parallel / postel3d /
artemis / telemac3d / diffsel / gretel / api / special / stbtel / waqtel / bief
/ hermes / sisyphe / telemac2d


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Attachments:
The administrator has disabled public write access.

Error compiling Telemac v7p1r1 in parallel on Windows 7 8 years 5 months ago #21981

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi

could you try running the following command:
set PYTHONPATH=C:\opentelemac-mascaret\v7p1r1\scripts\python27
And rerun compileTELEMAC.py
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

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