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

TOPIC: Compile in parallel

Compile in parallel 5 years 11 months ago #32330

  • Fabirite
  • Fabirite's Avatar
Dear Alls,

I am working with Telemac2D and I can compile with run with gfortan, but when I try to compile the parallel version (gfrotranHPC), I got the following error:

/usr/bin/ld: cannot find -lmetis
collect2: error: ld returned 1 exit status
compileTELEMAC::main:
+> creating executable: splitsel:
|createExeFiles: something went wrong, I am not sure why (runcode=1).
|
|... The following command failed for the reason above (or below)
|mpif90 -fPIC -fconvert=big-endian -frecord-marker=4 -lpthread -lm -o /home/fabian/telemac-mascaret/v7p2r0/builds/gfortranHPC/bin/splitsel pair.o splitsel.o /home/fabian/telemac-mascaret/v7p2r0/builds/gfortranHPC/lib/utils/bief/splitsel.a /home/fabian/telemac-mascaret/v7p2r0/builds/gfortranHPC/lib/utils/hermes/splitsel.a /home/fabian/telemac-mascaret/v7p2r0/builds/gfortranHPC/lib/utils/special/splitsel.a -L$METISHOME/lib -lmetis


I understand is related with metis, I installed metis in agreement with the instructions, then I don't know what is wrong.

I add my pysource and systel files.

I really appreciate your help.




File Attachment:

File Name: systel.cfg
File Size: 2 KB

File Attachment:

File Name: pysource.gfortranHPC.zip
File Size: 1 KB
The administrator has disabled public write access.

Compile in parallel 5 years 11 months ago #32331

  • Karki
  • Karki's Avatar
Hi Fabirite,

Did you compile and install metis properly?

Inside the 'build' folder of Metis, there should be a folder 'lib' and inside that folder a file named libmetis.a

And check whether the directory of that file is correct or not in the systel.cfg and
pysource.gfortranHPC.sh

This is my pysource.gfortranHPC.sh,

# This file is a template for a Linux environment file
# running "source pysource.template.sh" will position all
# the necessary environment variables for telemac
# To adapt to your installation replace word <word> by their local value
###
### TELEMAC settings
###
# Path to telemac root dir
export HOMETEL=/root/opentelemac/v7p2r0
# Adding python scripts to PATH
export PATH=$HOMETEL/scripts/python27:.:$PATH
# Configuration file
export SYSTELCFG=$HOMETEL/configs/systel.cfg
# Name of the configuration to use
export USETELCFG=gfortranHPC
# Path to this file
export SOURCEFILE=$HOMETEL/configs/pysource.gfortranHPC.sh
### Python
# To force python to flush its output
export PYTHONUNBUFFERED='true'
### API
export PYTHONPATH=$HOMETEL/scripts/python27:$PYTHONPATH
export LD_LIBRARY_PATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$PYTHONPATH
###
### EXTERNAL LIBRARIES
###
### METIS
export METISHOME=/root/opentelemac/v7p2r0/optionals/metis-5.1.0/build
### HDF5
#export MEDHOME=~/opt/hdf5-1.8.14/build_debian
#export LD_LIBRARY_PATH=$HDF5HOME/lib:$LD_LIBRARY_PATH
### MED
#export MEDHOME=~/opt/med-5.2.0/build_debian
#export LD_LIBRARY_PATH=$MEDHOME/lib:$LD_LIBRARY_PATH
#export PATH=$MEDHOME/bin:$PATH
### SCOTCH
#export SCOTCHHOME=~/opt/scotch-6.0.0/build_debian
#export LD_LIBRARY_PATH=$SCOTCHHOME/lib:$LD_LIBRARY_PATH
### AED
#export AEDHOME=~/opt/aed-2.1.0/build_debian
#export LD_LIBRARY_PATH=$AEDHOME/lib:$LD_LIBRARY_PATH

Hope it helps.

Regards,
Saroj
The administrator has disabled public write access.

Compile in parallel 5 years 11 months ago #32345

  • Fabirite
  • Fabirite's Avatar
Saroj,

Thank you so much for your answer. I think you are right and I have troubles with metis installation. I can't find the file libmetis.a

I'm so sorry but I don't know in where path I have to install metis.

My root path is:
telemac-mascaret/v7p2r0/sources/metis-5.1.0/

I understand I have to run from this path: cmake -D CMAKE_INSTALL_PREFIX=<install_path>.

But what have to write in <install_path>?. I appreciate if you could give me an example

And finally, the libmetis.a file is created automatically or I have to do something.

Thanks in advance
The administrator has disabled public write access.

Compile in parallel 5 years 11 months ago #32346

  • Karki
  • Karki's Avatar
Hi,

In the terminal inside your metis folder,

type the following

cmake -D CMAKE_INSTALL_PREFIX=telemac-mascaret/v7p2r0/sources/metis-5.1.0/build .

after this command
type 'make'

And after make, finally type 'make Install'

If the above commands are executed without any error. The file libmetis.a is automatically created in the build folder.

Inside the build folder, there will be created automatically three folders- bin, include and lib. The file is found in the folder lib.

In your systel.cfg, give the path to this file,

libs_all: -L$METISHOME/lib -lmetis

In the source file pysource.gfortranHPC.sh, give the path to build folder of Metis

### METIS
export METISHOME=/home/mascaret/v7p2r0/sources/metis-5.1.0/build

Hope it will help.

Regards,
Saroj
The administrator has disabled public write access.

Compile in parallel 5 years 11 months ago #32349

  • Fabirite
  • Fabirite's Avatar
Saroj,

Thank you again. I did your procedure and now I can find the file libmetis.a

Unfortunately I keep the same error message. I think another possibility is the installation of MPICH, Because I can't install it. I download the zip, but again I don't know how to install it. So sorry, but can you help me?.
The administrator has disabled public write access.

Compile in parallel 5 years 9 months ago #32754

  • shivanesh.rao
  • shivanesh.rao's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
Hi,

I am installing TELEMAC using the windows auto installer (for my Windows 7 desktop). This fails during the open-telemac svn part, so I followed the instructions for what to do if there is a failure, i.e., svn in DOS and copy *.cfg file and compileTELEMAC.py

I get the same error as Fabrite above.

I tried compileTELEMAC.py --clean with the same result. I ran with administrator access with no success.

c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot ope
n output file C:\opentelemac-mascaret\v7p2\builds\win7gfors\bin\splitsel.exe: Pe
rmission denied
collect2.exe: error: ld returned 1 exit status
compileTELEMAC::main:
+> creating executable: splitsel:
|createExeFiles: something went wrong, I am not sure why (runcode=1).
|
|... The following command failed for the reason above (or below)
|gfortran -fopenmp -fconvert=big-endian -frecord-marker=4 -v -lm -o C:\opente
lemac-mascaret\v7p2\builds\win7gfors\bin\splitsel.exe pair.o splitsel.o C:\ope
ntelemac-mascaret\v7p2\builds\win7gfors\lib\utils\bief\splitsel.lib C:\opentelem
ac-mascaret\v7p2\builds\win7gfors\lib\utils\hermes\splitsel.lib C:\opentelemac-m
ascaret\v7p2\builds\win7gfors\lib\utils\damocles\splitsel.lib C:\opentelemac-mas
caret\v7p2\builds\win7gfors\lib\utils\special\splitsel.lib
|


The error is splitsel.exe cannot be opened. I checked C:\opentelemac-mascaret\v7p2\builds\win7gfors\bin\ is an empty folder. It seems like the fail happens when the script tries to remedy by running the createExeFiles script.

Did something else fail during the auto installation part, which is why this folder is empty. I saw no errors during the auto install (apart from internet access failure for the last telemac source files download stage).

Any help would be appreciated.

Thanks,
Shiv
The administrator has disabled public write access.

Compile in parallel 5 years 9 months ago #32777

  • amanj2013
  • amanj2013's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 211
  • Thank you received: 24
Hi,

what version of Telemac are you trying to install?

yes, if your config is not proper for your machine, then it fails while trying to compile the code. what I suggest is follow the following steps,
1. start with auto installer to install all pre requisites and then inside open-telemac create new folder and name it as the version trying to install,
2. right click on that folder and try SVN checkout, then paste the link of reposity such as :
svn.opentelemac.org/svn/opentelemac/tags/v8p0r0/

this is for version V8 and may ask for user and password which is the same as :
www.opentelemac.org/index.php/sources-svn

3. after compelete downloaded all source code, then have a copy of config that work in your machine, i will share one that works for v7p2 here, open it in text editor and change the directory address to the one you have it in your machine such as C:/open-telemac/v8p0r0
4. follow the instruction of manual installation to change the CMD command prompt Target by right click and then properties on Telemac icon or new command prompt,
example of Target :C:\Windows\system32\cmd.exe /E:ON /V:ON /K set SYSTELCFG=C:\opentelemac-mascaret\v7p2r3\systel.parallel.cfg && PATH=C:\opentelemac-mascaret\v7p2r3\scripts\python27;!PATH!

and also change start in to the open-telemac directory,

4. make sure you set enviromental variables path pointed to python inside telemac and python script inside the v8p0r0 and also SYSTELCFG

and after doing all then open the TELEMAC throigh the CMD icon and then compileTELEMAC.py or with --clean

AMANJ
The administrator has disabled public write access.

Compile in parallel 5 years 9 months ago #32789

  • shivanesh.rao
  • shivanesh.rao's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
Hi Amanj,

This is for the standard install of v7p2 on my desktop.

What you mentioned is what I did in my initial stage, which led to the error as I described earlier.

After retrying it again with your instructions, I get the crash at the same point, but with a different error:

c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot fin
d -lpthread
collect2.exe: error: ld returned 1 exit status
compileTELEMAC::main:
+> creating executable: splitsel:
|createExeFiles: something went wrong, I am not sure why (runcode=1).
|
|... The following command failed for the reason above (or below)
|gfortran -fopenmp -fconvert=big-endian -frecord-marker=4 -v -lm -o C:\opente
lemac-mascaret\v7p2\builds\win7gfors\bin\splitsel.exe pair.o splitsel.o C:\ope
ntelemac-mascaret\v7p2\builds\win7gfors\lib\utils\bief\splitsel.lib C:\opentelem
ac-mascaret\v7p2\builds\win7gfors\lib\utils\hermes\splitsel.lib C:\opentelemac-m
ascaret\v7p2\builds\win7gfors\lib\utils\damocles\splitsel.lib C:\opentelemac-mas
caret\v7p2\builds\win7gfors\lib\utils\special\splitsel.lib
|

C:\opentelemac-mascaret\v7p2>

Error is cannot find -lpthread

The addresses in my config file (downloaded from the manual installation page) are all valid, i.e., points to C:\opentelemac-mascaret\v7p2

Do you have any other suggestions to progress this?

Cheers,
Shiv
The administrator has disabled public write access.

Compile in parallel 5 years 9 months ago #32790

  • shivanesh.rao
  • shivanesh.rao's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 1
I had our admin allow me direct internet access instead of proxy.

The auto installer worked during install of v7p3, but failed during the start of the compile.

I checked the config files and they are pointing to the new v7p3.

Initial error was no module such as -dredgesim ...
So I modified the *.cfg file to remove that option...which led to the error of "cannot find -lpthread"

Some other had similar issues (last year), but haven't updated their threads if it was resolved or not.

www.opentelemac.org/index.php/kunena/2-w...when-i-compile#29171
The administrator has disabled public write access.

Compile in parallel 5 years 9 months ago #32791

  • amanj2013
  • amanj2013's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 211
  • Thank you received: 24
Pls try with this config and also send me a snapshot of your environmental variables setup where showing wingw/bin.
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

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