<div dir="ltr">So the point is I was relying on a flag that is possibly non-working.<br>I confirm that, given the line that I had previously used<br><br> ./configure PETSC_ARCH=arch-pkgs --prefix=$HOME/petsc-pkgs ... --download-fblaslapack --download-mumps --download-scalapack ...<br><br>(I didn't need to do this again), I could reuse my compiled packages with<br><br> ./configure PETSC_ARCH=arch-pkgs --prefix=$HOME/petsc-pkgs ... --with-fblaslapack-dir=/home/santiago/usr/local --with-mumps-dir=$HOME/petsc-pkgs --with-scalapack-dir=$HOME/petsc-pkgs ...<br><br>and it worked fine. (I assume in your second ./configure command you meant PETSC_ARCH=arch-pkgs, as I used).<br>This used previously compiled versions of fblaslapack, mumps and scalapack:<br><br> ...<br> BlasLapack:<br> Library: -Wl,-rpath,/home/santiago/usr/local/lib -L/home/santiago/usr/local/lib -lflapack -lfblas<br> uses 4 byte integers<br> MPI:<br> Version: 3<br> Mpiexec: mpiexec<br> OMPI_VERSION: 2.1.1<br> pthread:<br> fblaslapack:<br> cmake:<br> Version: 3.10.2<br> /usr/bin/cmake<br> X:<br> Library: -lX11<br> regex:<br> MUMPS:<br> Version: 5.2.1<br> Includes: -I/home/santiago/usr/local/include<br> Library: -Wl,-rpath,/home/santiago/usr/local/lib -L/home/santiago/usr/local/lib -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_co mmon -lpord<br> scalapack:<br> Library: -Wl,-rpath,/home/santiago/usr/local/lib -L/home/santiago/usr/local/lib -lscalapack<br> ...<br><br>I guess this can also be used to compile fblaslapack, mumps, scalapack (all the same versions as I am working with now), with whatever options I want, and then use these to configure PETSc.<br><br>Thanks.<br>Santiago<br><br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 25, 2020 at 11:54 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 25 Apr 2020, <a href="mailto:san.temporal@gmail.com" target="_blank">san.temporal@gmail.com</a> wrote:<br>
<br>
> Hi all,<br>
> <br>
> While compiling 3.13.0 I have previously run<br>
> <br>
> $ ./configure ... --download-mumps --download-scalapack ...<br>
> <br>
> and now I have<br>
> <br>
> $ ls arch-linux2-c-opt/externalpackages/<br>
> fblaslapack-3.4.2/ petsc-pkg-fblaslapack-e8a03f57d64c/<br>
> petsc-pkg-mumps-d1a5c931b762/ petsc-pkg-scalapack-3ba8f741b828/<br>
> <br>
> Are there any flags for configure that let me reuse the compiled versions I<br>
> have?<br>
<br>
<br>
By default - if you use the same PETSC_ARCH and same download options - the installed packages won't get rebuilt.<br>
<br>
However - if you want to have a single install of externalpackages shared across multiple petsc builds - its best<br>
to install externalpackages in a prefix location. And then use this for subsequent builds.<br>
<br>
./configure PETSC_ARCH=arch-pkgs --prefix=$HOME/petsc-pkgs --download-mumps --download-scalapack<br>
<br>
./configure PETSC__ARCH=arch-use-pkgs --with-mumps-dir=$HOME/petsc-pkgs --with-scalapack-dir=$HOME/petsc-pkgs<br>
<br>
<br>
--with-packages-search-path options hardly ever gets used - so will have to check if its broken or not.<br>
<br>
Satish<br>
<br>
<br>
> I did not try separate --with-mumps-include and --with-mumps-lib, as I<br>
> think there should be a more rational approach<br>
> All the combinations I tried failed (<loc> stands for the current dir):<br>
> <br>
> 1.<br>
> --with-packages-search-path=<loc> --with-mumps<br>
> (what I would like best, as it would allow for a single search path for all<br>
> external packages already compiled)<br>
> <br>
> 2.<br>
> --with-packages-search-path=<loc>/arch-linux2-c-opt --with-mumps<br>
> <br>
> 3.<br>
> --with-packages-search-path=<loc>/arch-linux2-c-opt/externalpackages<br>
> --with-mumps<br>
> <br>
> 4.<br>
> --with-packages-search-path=<loc>/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762<br>
> --with-mumps<br>
> <br>
> 5.<br>
> --with-packages-search-path=<loc>/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762<br>
> --with-mumps-dir=<loc>/arch-linux2-c-opt/externalpackages/petsc-pkg-mumps-d1a5c931b762<br>
> --with-mumps<br>
> <br>
> Note that the directory is well written. If that weren't the case,<br>
> --with-packages-search-path would simply not find it, but --with-mumps-dir<br>
> would complain.<br>
> <br>
> Thanks in advance,<br>
> Santiago<br>
> <br>
<br>
</blockquote></div>