Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling on Ubuntu 18.10

Compiling on Ubuntu 18.10 5 years 8 months ago #33176

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I tried so, but somehow get the same error. Attached is my .cfg file I use maybe there is something else to adjust?
Attachments:
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33177

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Keep libmetis in your libs_all.
And keep incs_all empty.
I am surprised it worked those keyword are mandatory.

If you still have the error then something is wrong with your mpi.
Or you need to load other libraries.
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33178

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Did not work as well. I will try to recompile metis with gcc and compile telemac with gcc instead of intel.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33179

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I just recompiled metis with gcc and changed my config file (attached). Somehow I still get the same issue? Could v8p0r1 be the cause?
Which libraries would you recommend for Ubuntu 18.10?
Attachments:
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33180

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
How did you compile metis ?
Could you post the command you typed ?

As for your systel.cfg i would change it that way:
[ubugfmpich]
#
brief: parallel mode, using mpiexec directly (of the MPICH2 package).
       The only difference with the scalar versions (optimised) is the presence
       of the key mpi_cmdexec and the -DHAVE_MPI compilation directive.
       Of course, you also need the key par_cmdexec.
       Finally, note that this configuration also works whether
       processor is 0 or 1.
#
mpi_cmdexec:   /usr/bin/mpiexec -wdir <wdir> -n <ncsize> <exename>
#
cmd_obj:    /usr/bin/mpif90 -c -g -fbounds-check -Wall -fbacktrace -finit-real=nan -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_exe:    /usr/bin/mpif90 -fconvert=big-endian -frecord-marker=4 -lm -o <exename> <objs>  <libs>
#
incs_all:  
libs_all:  ~/Telemac/v8p0r1/optionals/metis-5.1.0/build/Linux-x86_64/libmetis/libmetis.a
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33181

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I compiled metis as follows

Changed the makefile with nano
prefix     = ~/Telemac/v8p0r1/optionals/metis-5.1.0/build/
cc = gcc

in the folder with the Makefile is used the next two commands to compile metis
make config
make

The same procedure has been used for intel compilers but I changed
cc = icc
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33182

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Can you try installing it following the guide here:
wiki.opentelemac.org/doku.php?id=installation_linux_metis

And see if it make a difference.
Also do a make clean before all that.
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33183

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I would love to follow this instructions but I have no clue where to find the libmetis.a file so that I could tell cmake where to install.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33184

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
I am not sure I understand what you are saying.

to cmake you must give a path where he will install.
So this a path you create for example /home/yugi/opt/metis-5.1.0/arch/S9 is what I use.

What you are giving is the folder were make install will put all the files you need to use metis.
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33185

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
That's what I thought as well but when entering:
cmake -D CMAKE_INSTALL_PREFIX=~/Telemac/v8p0r1/optionals/metis-5.1.0/build DSHARED=TRUE

inside the metis-5.1.0 folder which comes with the src code I get the following error.
CMake Error: The source directory "/home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/DSHARED=TRUE" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Which somehow makes no sense to me.
The administrator has disabled public write access.
Moderators: borisb

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