[petsc-users] Reuse compiled packages

san.temporal at gmail.com san.temporal at gmail.com
Sat Apr 25 07:34:05 CDT 2020


PS: In cases 1-4, configure keeps finding the precompiled package of mumps,
ver 5.1.2

    $ dpkg -l | grep mumps
    ii  libmumps-5.1.2:amd64                          5.1.2-4
              amd64        Direct linear systems solver - parallel shared
libraries
    ii  libmumps-dev:amd64                            5.1.2-4
              amd64        Direct linear systems solver - parallel
development files
    ii  libmumps-ptscotch-5.1.2:amd64                 5.1.2-4
              amd64        Direct linear systems solver - PTScotch-version
shared libraries
    ii  libmumps-ptscotch-dev:amd64                   5.1.2-4
              amd64        Direct linear systems solver - PTScotch-version
development files
    ii  libmumps-scotch-5.1.2:amd64                   5.1.2-4
              amd64        Direct linear systems solver - Scotch-version
shared libraries
    ii  libmumps-scotch-dev:amd64                     5.1.2-4
              amd64        Direct linear systems solver - Scotch-version
development files
    ii  libmumps-seq-5.1.2:amd64                      5.1.2-4
              amd64        Direct linear systems solver - non-parallel
shared libraries
    ii  libmumps-seq-dev:amd64                        5.1.2-4
              amd64        Direct linear systems solver - non-parallel
development files

   and output of configure:

    ...
    MUMPS:
      Version:  5.1.2
      Library:  -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord
    scalapack:
      Library:  -lscalapack
   ...

In case 5, I get an error


===============================================================================
                 Configuring PETSc to compile on your system

===============================================================================
    TESTING: configureLibrary from
config.packages.MUMPS(config/BuildSystem/config/package.py:868)

*******************************************************************************
             UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
for details):

-------------------------------------------------------------------------------
    Bad option:
--with-mumps-dir=/home/santiago/Documents/installers/petsc/petsc-3.13.0/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762

/home/santiago/Documents/installers/petsc/petsc-3.13.0/arch-linux2-c-opt/externalpackages
is reserved for --download-package scratch space.
    Do not install software in this location nor use software in this
directory.

*******************************************************************************






On Sat, Apr 25, 2020 at 9:17 AM <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?
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200425/77303083/attachment.html>


More information about the petsc-users mailing list