Using PETSc from the distribution's packages

18 views
Skip to first unread message

Jeremy Theler

unread,
Apr 11, 2018, 9:44:08 AM4/11/18
to wasora
Hey all

The most problematic part of compiling milonga and Fino is the PETSc/SLEPc part. Even though GNU/Linux distributions have been including binary packages of both these libraries, they usually were old versions that were not compatible with milonga and Fino. Now that development has stalled, both codes seem to work fine with any version greater that 3.6.0 which seems to be the case of most modern distributions.

I am a Debian guy, so I can tell that Debian 9 Stretch provides good packages (Debian 8 Jessie does not!).

Can others point out what the PETSc/SLEPc versions are the ones included in the latest stable releases of other distributions? If most of them (Ubuntu? what is the official distribution at IB? In my undergrad student days it was Red Hat :-) ) provide > 3.6.0 then I can update the docs to show how to use the pre-compiled libraries and make life of newcomers easier.

Any help?

Another idea is to provide statically-linked binaries, but these would be > 100Mb in size.


Regards
--
jeremy

Vitor Vasconcelos

unread,
Apr 11, 2018, 9:53:37 AM4/11/18
to was...@seamplex.com
I'm on Fedora and CentOS:

Fedora 27 - last stable release provides:
petsc 3.8.3

CentOS (EPEL7)
petsc 3.8.3

slepc is not provided as binary packages by neither one.

Cheers,

Vitor
> --
> You received this message because you are subscribed to the Google Groups
> "wasora" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wasora+un...@seamplex.com.
> To post to this group, send email to was...@seamplex.com.
> Visit this group at https://groups.google.com/a/seamplex.com/group/wasora/.
> To view this discussion on the web visit
> https://groups.google.com/a/seamplex.com/d/msgid/wasora/14e06d8aed38c7a3b266fd9b074fb1cf80aabe83.camel%40seamplex.com.
> For more options, visit https://groups.google.com/a/seamplex.com/d/optout.

Jeremy Theler

unread,
Apr 18, 2018, 7:15:50 AM4/18/18
to wasora
Hey all

I did not receive many replies on this (only Vitor's), you are probably as busy as I am.
Nevertheless, I upated the "quick start" instructions in wasora, fino and milonga.
Even though the get.sh script still works, I reverted back to stating the individual commands. If stock petsc/slepc packages can be used, the compilation workflow is straigtforward:

sudo apt-get install m4 make autoconf automake gcc g++ git findutils

sudo apt-get install libgsl-dev libsundials-serial-dev libreadline-dev petsc-dev slepc-dev


git clone https://bitbucket.org/seamplex/milonga/
cd milonga
./autogen.sh
./configure
make
make check


Besides, if one of the steps fail, it is easier to see what went wrong.

Any comment is appreciated.

regards
--
jeremy

César Pablo Camusso

unread,
Apr 18, 2018, 11:16:12 AM4/18/18
to was...@seamplex.com
Dear Germán,

The petsc and slepc is the most difficult part.
I agree with using the commands steps because the problems with petsc and sleps happen the first time. After that I learnt the steps and I compiled with the steps.

Regards.


--
You received this message because you are subscribed to the Google Groups "wasora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wasora+un...@seamplex.com.
To post to this group, send email to was...@seamplex.com.
Visit this group at https://groups.google.com/a/seamplex.com/group/wasora/.

César Bublitz

unread,
Apr 18, 2018, 1:33:52 PM4/18/18
to was...@seamplex.com
Hi,

Finally I was able to compile milonga, following the last instructions of German.

About the distribution and version:

~$ milonga -v
milonga v0.5.42-g076e156
free nuclear reactor core analysis code

 last commit on Tue Apr 17 15:46:37 2018 -0300
 compiled on 2018-04-18 13:45:27 by cesarb@cesarb-Presario-CQ43-Notebook-PC ( )
 with gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 using -O2 linked against
  SLEPc Release Version 3.6.1, Sep 03, 2015
  Petsc Release Version 3.6.2, Oct, 02, 2015  x86_64-linux-gnu-real
 running on Linux 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64
 4  Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz


 milonga is copyright (c) 2010-2018 jeremy theler
 licensed under GNU GPL version 3 or later.
 milonga is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.


----------------             -------------         --------      
wasora v0.5.221-g2157702
wasora’s an advanced suite for optimization & reactor analysis

 last commit on Mon Apr 16 18:04:45 2018 -0300
 compiled on 2018-04-18 13:44:32 by cesarb@cesarb-Presario-CQ43-Notebook-PC ( )
  GNU Scientific Library version 2.1
  SUNDIALs Library version 2.5.0
  GNU Readline version 6.3

 wasora is copyright (C) 2009-2018 jeremy theler
 licensed under GNU GPL version 3 or later.
 wasora is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.


Thank you.


To unsubscribe from this group and stop receiving emails from it, send an email to wasora+unsubscribe@seamplex.com.

--
You received this message because you are subscribed to the Google Groups "wasora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wasora+unsubscribe@seamplex.com.

To post to this group, send email to was...@seamplex.com.
Visit this group at https://groups.google.com/a/seamplex.com/group/wasora/.

Jeremy Theler

unread,
Apr 18, 2018, 4:01:00 PM4/18/18
to was...@seamplex.com
Great!
Share the problems you solve and the results you obtain with the list!

--
jeremy
Reply all
Reply to author
Forward
0 new messages