<div dir="ltr"><div dir="ltr">On Fri, Sep 20, 2019 at 7:24 PM Balay, Satish via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">As the message says - you need to use configure option --with-cxx-dialect=C++11 with --download-superlu_dist<br></blockquote><div><br></div><div>SuperLU_DIst recently put some C++ code in it that needs C++-11. IT was not there last time you used it.</div><div><br></div><div>  Thanks,</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
[this requirement is automated in petsc/master so extra configure option is no longer required]<br>
<br>
Satish<br>
<br>
On Fri, 20 Sep 2019, Povolotskyi, Mykhailo via petsc-users wrote:<br>
<br>
> Hello Satish,<br>
> <br>
> I did what you suggested, now the error is different:<br>
> <br>
> <br>
>      UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for <br>
> details):<br>
> -------------------------------------------------------------------------------<br>
> Cannot use SuperLU_DIST without enabling C++11, see --with-cxx-dialect=C++11<br>
> *******************************************************************************<br>
> <br>
> The updated configure.log is here:<br>
> <br>
> <a href="https://www.dropbox.com/s/tmkksemu294j719/configure.log?dl=0" rel="noreferrer" target="_blank">https://www.dropbox.com/s/tmkksemu294j719/configure.log?dl=0</a><br>
> <br>
> On 9/20/2019 4:32 PM, Balay, Satish wrote:<br>
> > ================================================================================<br>
> > TEST checkRuntimeIssues from config.packages.BlasLapack(/depot/kildisha/apps/brown/nemo5/libs/petsc/build-real3.11/config/BuildSystem/config/packages/BlasLapack.py:579)<br>
> > TESTING: checkRuntimeIssues from config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:579)<br>
> >    Determines if BLAS/LAPACK routines use 32 or 64 bit integers<br>
> > Checking if BLAS/LAPACK routines use 32 or 64 bit integersExecuting: mpicc -c -o /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest.o -I/tmp/petsc-wf99X2/config.setCompilers -I/tmp/petsc-wf99X2/config.compilers -I/tmp/petsc-wf99X2/config.utilities.closure -I/tmp/petsc-wf99X2/config.headers -I/tmp/petsc-wf99X2/config.utilities.cacheDetails -I/tmp/petsc-wf99X2/config.atomics -I/tmp/petsc-wf99X2/config.libraries -I/tmp/petsc-wf99X2/config.functions -I/tmp/petsc-wf99X2/config.utilities.featureTestMacros -I/tmp/petsc-wf99X2/config.utilities.missing -I/tmp/petsc-wf99X2/config.types -I/tmp/petsc-wf99X2/config.packages.MPI -I/tmp/petsc-wf99X2/config.packages.valgrind -I/tmp/petsc-wf99X2/config.packages.pthread -I/tmp/petsc-wf99X2/config.packages.metis -I/tmp/petsc-wf99X2/config.packages.hdf5 -I/tmp/petsc-wf99X2/config.packages.BlasLapack -fopenmp -fPIC  /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest.c<br>
> > Successful compile:<br>
> > Source:<br>
> > #include "confdefs.h"<br>
> > #include "conffix.h"<br>
> > #include <sys/types.h><br>
> > #if STDC_HEADERS<br>
> > #include <stdlib.h><br>
> > #include <stdio.h><br>
> > #include <stddef.h><br>
> > #endif<br>
> ><br>
> > int main() {<br>
> > FILE *output = fopen("runtimetestoutput","w");<br>
> > extern double ddot_(const int*,const double*,const int *,const double*,const int*);<br>
> >                    double x1mkl[4] = {3.0,5.0,7.0,9.0};<br>
> >                    int one1mkl = 1,nmkl = 2;<br>
> >                    double dotresultmkl = 0;<br>
> >                    dotresultmkl = ddot_(&nmkl,x1mkl,&one1mkl,x1mkl,&one1mkl);<br>
> >                    fprintf(output, "-known-64-bit-blas-indices=%d",dotresultmkl != 34);;<br>
> >    return 0;<br>
> > }<br>
> > Executing: mpicc  -o /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest   -fopenmp -fPIC /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest.o -L/apps/cent7/intel/compilers_and_libraries_2017.1.132/linux/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lm -lstdc++ -ldl -L/apps/brown/openmpi.20190215/2.1.6_gcc-5.2.0/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -L/apps/cent7/gcc/5.2.0/lib/gcc/x86_64-unknown-linux-gnu/5.2.0 -L/apps/cent7/gcc/5.2.0/lib64 -L/apps/cent7/gcc/5.2.0/lib -Wl,-rpath,/apps/brown/openmpi.20190215/2.1.6_gcc-5.2.0/lib -lgfortran -lm -lgomp -lgcc_s -lquadmath -lpthread -lstdc++ -ldl<br>
> > Testing executable /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest to see if it can be run<br>
> > Executing: /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest<br>
> > Executing: /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest<br>
> > ERROR while running executable: Could not execute "['/tmp/petsc-wf99X2/config.packages.BlasLapack/conftest']":<br>
> > /tmp/petsc-wf99X2/config.packages.BlasLapack/conftest: error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory<br>
> ><br>
> >                  Defined "HAVE_64BIT_BLAS_INDICES" to "1"<br>
> > Checking for 64 bit blas indices: program did not return therefor assuming 64 bit blas indices<br>
> >              Defined "HAVE_LIBMKL_INTEL_ILP64" to "1"<br>
> ><br>
> > <<<<<<<<<br>
> ><br>
> > So this test has an error but yet the flag HAVE_64BIT_BLAS_INDICES is set.<br>
> ><br>
> > Is your compiler not returning correct error codes?<br>
> ><br>
> > Does it make a difference if you also specify -Wl,-rpath along with -L in --with-blaslapack-lib option?<br>
> ><br>
> ><br>
> > Satish<br>
> ><br>
> > On Fri, 20 Sep 2019, Povolotskyi, Mykhailo wrote:<br>
> ><br>
> >> Dear Matthew and Satish,<br>
> >><br>
> >> I just wrote that the error disappeared, but it still exists (I had to<br>
> >> wait longer).<br>
> >><br>
> >> The configuration log can be accessed here:<br>
> >><br>
> >> <a href="https://www.dropbox.com/s/tmkksemu294j719/configure.log?dl=0" rel="noreferrer" target="_blank">https://www.dropbox.com/s/tmkksemu294j719/configure.log?dl=0</a><br>
> >><br>
> >> Sorry for the last e-mail.<br>
> >><br>
> >> Michael.<br>
> >><br>
> >><br>
> >> On 09/20/2019 03:53 PM, Balay, Satish wrote:<br>
> >>> --with-64-bit-indices=1 => PetscInt = int64_t<br>
> >>> --known-64-bit-blas-indices=1 => blas specified uses 64bit indices.<br>
> >>><br>
> >>> What is your requirement (use case)?<br>
> >>><br>
> >>> Satish<br>
> >>><br>
> >>> On Fri, 20 Sep 2019, Povolotskyi, Mykhailo via petsc-users wrote:<br>
> >>><br>
> >>>> Does it mean I have to configure petsc with --with-64-bit-indices=1 ?<br>
> >>>><br>
> >>>> On 09/20/2019 03:41 PM, Matthew Knepley wrote:<br>
> >>>> On Fri, Sep 20, 2019 at 1:55 PM Povolotskyi, Mykhailo via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a><mailto:<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>>> wrote:<br>
> >>>> Hello,<br>
> >>>><br>
> >>>> I'm upgrading petsc from 3.8 to 3.11.<br>
> >>>><br>
> >>>> In doing so, I see an error message:<br>
> >>>><br>
> >>>>     UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>
> >>>> -------------------------------------------------------------------------------<br>
> >>>> Cannot use SuperLU_DIST with 64 bit BLAS/Lapack indices<br>
> >>>> *******************************************************************************<br>
> >>>><br>
> >>>> I wonder why this configuration step worked well for 3.8?  I did not<br>
> >>>> change anything else but version of petsc.<br>
> >>>><br>
> >>>> This never worked. We are just checking now.<br>
> >>>><br>
> >>>>     Thanks,<br>
> >>>><br>
> >>>>       Matt<br>
> >>>><br>
> >>>> Thank you,<br>
> >>>><br>
> >>>> Michael.<br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> --<br>
> >>>> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
> >>>> -- Norbert Wiener<br>
> >>>><br>
> >>>> <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><<a href="http://www.cse.buffalo.edu/%7Eknepley/" rel="noreferrer" target="_blank">http://www.cse.buffalo.edu/%7Eknepley/</a>><br>
> >>>><br>
> >>>><br>
> >><br>
> <br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>