[petsc-users] Reuse compiled packages
Satish Balay
balay at mcs.anl.gov
Sat Apr 25 09:54:18 CDT 2020
On Sat, 25 Apr 2020, san.temporal at gmail.com wrote:
> Hi all,
>
> While compiling 3.13.0 I have previously run
>
> $ ./configure ... --download-mumps --download-scalapack ...
>
> and now I have
>
> $ ls arch-linux2-c-opt/externalpackages/
> fblaslapack-3.4.2/ petsc-pkg-fblaslapack-e8a03f57d64c/
> petsc-pkg-mumps-d1a5c931b762/ petsc-pkg-scalapack-3ba8f741b828/
>
> Are there any flags for configure that let me reuse the compiled versions I
> have?
By default - if you use the same PETSC_ARCH and same download options - the installed packages won't get rebuilt.
However - if you want to have a single install of externalpackages shared across multiple petsc builds - its best
to install externalpackages in a prefix location. And then use this for subsequent builds.
./configure PETSC_ARCH=arch-pkgs --prefix=$HOME/petsc-pkgs --download-mumps --download-scalapack
./configure PETSC__ARCH=arch-use-pkgs --with-mumps-dir=$HOME/petsc-pkgs --with-scalapack-dir=$HOME/petsc-pkgs
--with-packages-search-path options hardly ever gets used - so will have to check if its broken or not.
Satish
> I did not try separate --with-mumps-include and --with-mumps-lib, as I
> think there should be a more rational approach
> All the combinations I tried failed (<loc> stands for the current dir):
>
> 1.
> --with-packages-search-path=<loc> --with-mumps
> (what I would like best, as it would allow for a single search path for all
> external packages already compiled)
>
> 2.
> --with-packages-search-path=<loc>/arch-linux2-c-opt --with-mumps
>
> 3.
> --with-packages-search-path=<loc>/arch-linux2-c-opt/externalpackages
> --with-mumps
>
> 4.
> --with-packages-search-path=<loc>/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762
> --with-mumps
>
> 5.
> --with-packages-search-path=<loc>/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762
> --with-mumps-dir=<loc>/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762
> --with-mumps
>
> Note that the directory is well written. If that weren't the case,
> --with-packages-search-path would simply not find it, but --with-mumps-dir
> would complain.
>
> Thanks in advance,
> Santiago
>
More information about the petsc-users
mailing list