<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Barry, nevermind.<BR>
I am on a cray machine so I had to edit petscconf.h before running make: it turns out I must have accidentally modified PETSC_USE_DEBUG.<BR>
Sorry for the trouble :-)<BR>
<BR>
Thanks,<BR>
Michele<BR>
<BR>
<BR>
On Wed, 2015-06-03 at 14:23 -0500, Barry Smith wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
   Hmm, look in  $PETSC_ARCH/include/petscconf.h and look for 

#ifndef PETSC_USE_DEBUG
#define PETSC_USE_DEBUG 1
#endif

is it there? This is what triggers the printing of that message with -log_summary and PETSC_USE_DEBUG is defined in config/PETSc/options/LibraryOptions.py based on 
self.debugging.debugging:  which is set in config/BuildSystem/config/compilerFlags.py  so I am totally lost how it could be printing that message with that choice of configure options. Did you run make all after you ran the ./configure ?

   Barry


<FONT COLOR="#737373">> On Jun 3, 2015, at 2:05 PM, Michele Rosso <<A HREF="mailto:mrosso@uci.edu">mrosso@uci.edu</A>> wrote:</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Hi Barry,</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> I think I did (see below in bold red):</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Configure options: --known-level1-dcache-size=16384 --known-level1-dcache-linesize=64 --known-level1-dcache-assoc=4 --known-memcmp-ok=1 --known-sizeof-char=1 --known-sizeof-void-p=8 --known-sizeof-short=2 --known-sizeof-int=4 --known-sizeof-long=8 --known-sizeof-long-long=8 --known-sizeof-float=4 --known-sizeof-double=8 --known-sizeof-size_t=8 --known-bits-per-byte=8 --known-sizeof-MPI_Comm=4 --known-sizeof-MPI_Fint=4 --known-mpi-long-double=1 --known-mpi-int64_t=1 --known-mpi-c-double-complex=1 --known-sdot-returns-double=0 --known-snrm2-returns-double=0 --with-batch="1 " --known-mpi-shared="0 " --known-mpi-shared-libraries=0 --known-memcmp-ok  --with-blas-lapack-lib="-L/opt/acml/5.3.1/gfortran64/lib  -lacml" --COPTFLAGS="-march=bdver1 -fopenmp -O3 -ffast-math -fPIC " --FOPTFLAGS="-march=bdver1 -fopenmp -O3 -ffast-math -fPIC " --CXXOPTFLAGS="-march=bdver1 -fopenmp -O3 -ffast-math -fPIC " --with-x="0 " --with-debugging=0 --with-clib-autodetect="0 " --with-cxxlib-autodetect="0 " --with-fortranlib-autodetect="0 " --with-shared-libraries="0 " --with-mpi-compilers="1 " --with-cc="cc " --with-cxx="CC " --with-fc="ftn " --download-hypre=1 --download-blacs="1 " --download-scalapack="1 " --download-superlu_dist="1 " --download-metis="1 " --download-parmetis="1 " PETSC_ARCH=gnu-opt-32idx</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> On Wed, 2015-06-03 at 13:50 -0500, Barry Smith wrote:</FONT>
<FONT COLOR="#737373">>>    Though you turned on various compiler optimizations you did not turn off the "extra" PETSc error checking that is enabled by default.  For optimized runs you should also use the argument --with-debugging=0 </FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">>>   Barry</FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">>> > On Jun 3, 2015, at 1:30 PM, Michele Rosso <<A HREF="mailto:mrosso@uci.edu">mrosso@uci.edu</A>> wrote:</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Hi,</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > I am performing some timing runs with PETSc. I think I correctly compiled it with no debug mode, yet -log_summary gives me a warning:</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> >       ##########################################################</FONT>
<FONT COLOR="#737373">>> >       #                                                        #</FONT>
<FONT COLOR="#737373">>> >       #                          WARNING!!!                    #</FONT>
<FONT COLOR="#737373">>> >       #                                                        #</FONT>
<FONT COLOR="#737373">>> >       #   This code was compiled with a debugging option,      #</FONT>
<FONT COLOR="#737373">>> >       #   To get timing results run ./configure                #</FONT>
<FONT COLOR="#737373">>> >       #   using --with-debugging=no, the performance will      #</FONT>
<FONT COLOR="#737373">>> >       #   be generally two or three times faster.              #</FONT>
<FONT COLOR="#737373">>> >       #                                                        #</FONT>
<FONT COLOR="#737373">>> >       ##########################################################</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Here are my configure options ( from -log_summary ):</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Compiled without FORTRAN kernels</FONT>
<FONT COLOR="#737373">>> > Compiled with full precision matrices (default)</FONT>
<FONT COLOR="#737373">>> > sizeof(short) 2 sizeof(int) 4 sizeof(long) 8 sizeof(void*) 8 sizeof(PetscScalar) 8 sizeof(PetscInt) 4</FONT>
<FONT COLOR="#737373">>> > Configure options: --known-level1-dcache-size=16384 --known-level1-dcache-linesize=64 --known-level1-dcache-assoc=4 --known-memcmp-ok=1 --known-sizeof-char=1 --known-sizeof-void-p=8 --known-sizeof-short=2 --known-sizeof-int=4 --known-sizeof-long=8 --known-sizeof-long-long=8 --known-sizeof-float=4 --known-sizeof-double=8 --known-sizeof-size_t=8 --known-bits-per-byte=8 --known-sizeof-MPI_Comm=4 --known-sizeof-MPI_Fint=4 --known-mpi-long-double=1 --known-mpi-int64_t=1 --known-mpi-c-double-complex=1 --known-sdot-returns-double=0 --known-snrm2-returns-double=0 --with-batch="1 " --known-mpi-shared="0 " --known-mpi-shared-libraries=0 --known-memcmp-ok  --with-blas-lapack-lib="-L/opt/acml/5.3.1/gfortran64/lib  -lacml" --COPTFLAGS="-march=bdver1 -fopenmp -O3 -ffast-math -fPIC " --FOPTFLAGS="-march=bdver1 -fopenmp -O3 -ffast-math -fPIC " --CXXOPTFLAGS="-march=bdver1 -fopenmp -O3 -ffast-math -fPIC " --with-x="0 " --with-debugging=0 --with-clib-autodetect="0 " --with-cxxlib-autodetect="0 " --with-fortranlib-autodetect="0 " --with-shared-libraries="0 " --with-mpi-compilers="1 " --with-cc="cc " --with-cxx="CC " --with-fc="ftn " --download-hypre=1 --download-blacs="1 " --download-scalapack="1 " --download-superlu_dist="1 " --download-metis="1 " --download-parmetis="1 " PETSC_ARCH=gnu-opt-32idx</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Libraries compiled on Wed Jun  3 12:14:19 2015 on h2ologin2</FONT>
<FONT COLOR="#737373">>> > Machine characteristics: Linux-3.0.101-0.46-default-x86_64-with-SuSE-11-x86_64</FONT>
<FONT COLOR="#737373">>> > Using PETSc directory: /mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4</FONT>
<FONT COLOR="#737373">>> > Using PETSc arch: gnu-opt-32idx</FONT>
<FONT COLOR="#737373">>> > -----------------------------------------</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Using C compiler: cc  -march=bdver1 -fopenmp -O3 -ffast-math -fPIC  ${COPTFLAGS} ${CFLAGS}</FONT>
<FONT COLOR="#737373">>> > Using Fortran compiler: ftn  -march=bdver1 -fopenmp -O3 -ffast-math -fPIC   ${FOPTFLAGS} ${FFLAGS}</FONT>
<FONT COLOR="#737373">>> > -----------------------------------------</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Using include paths: -I/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/gnu-opt-32idx/include -I/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/include -I/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/include -I/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/gnu-opt-32idx/include</FONT>
<FONT COLOR="#737373">>> > -----------------------------------------</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Using C linker: cc</FONT>
<FONT COLOR="#737373">>> > Using Fortran linker: ftn</FONT>
<FONT COLOR="#737373">>> > Using libraries: -Wl,-rpath,/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/gnu-opt-32idx/lib -L/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/gnu-opt-32idx/lib -lpetsc -Wl,-rpath,/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/gnu-opt-32idx/lib -L/mnt/a/u/sciteam/mrosso/LIBS/petsc-3.5.4/gnu-opt-32idx/lib -lsuperlu_dist_3.3 -lHYPRE -L/opt/acml/5.3.1/gfortran64/lib -lacml -lparmetis -lmetis -lpthread -lssl -lcrypto -ldl</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > What am I doing wrong?</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> > Thanks,</FONT>
<FONT COLOR="#737373">>> > Michele</FONT>
<FONT COLOR="#737373">>> > </FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">>> </FONT>
<FONT COLOR="#737373">> </FONT>

</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>