[petsc-users] Problem with Optimised version .vs. Debug version

Bogdan Dita bogdan at lmn.pub.ro
Wed Dec 7 08:31:42 CST 2011


  Hello,

  A few weeks ago i posted a question regarding a problem with the
optimised version of PETSc, what i mean is that I obtained a higher
solving time with the optimised version then with the debug
version(~10-15% higher). This is not a performance issue regarding my
own program because I got a similar result with PETSc provided codes(eg.
codes from /src/ksp/ksp/examples/tutorials/). This kind of strange
results i got only when testing code on the cluster, on my laptop all
works great (opt_vers_time=debug_vers_time/2.2).
  I tried all kinds of PETSc optimised version configs options and even
reinstalled mpi a few times, and still the same problem.
  Maybe someone out there has had a similar problem because I'm running
out off ideas.

Below are the config options for petsc_opt, petsc_debug and mpich2, maybe
someone notices something i missed or has some idea regarding my problem.

__________petsc_debug____________
-with-mpi-dir=/usr/lib64/mpich2 --with-clanguage=c --with-debugging=1
--with-shared-libraries=1 --with-scalar-type=complex
--download-umfpack=yes --with-fortran-kernels=1 --download-superlu=yes
--download-mumps=yes --download-scalapack=yes --download-superlu_dist=yes
--download-blacs=yes --download-f-blas-lapack=yes --download-plapack=yes
--download-parmetis=yes
Working directory: /home/bogdan/petsc-new-dbg
Machine platform: ('Linux', 'tau', '2.6.41.1-1.fc15.x86_64', '#1 SMP Fri
Nov 11 21:36:28 UTC 2011', 'x86_64', 'x86_64')


_________petsc-opt___________
--with-mpi-dir=/usr/lib64/mpich2 --with-clanguage=c --with-debugging=no
--with-shared-libraries=1 --with-scalar-type=complex
--download-umfpack=yes --with-fortran-kernels=1 --download-superlu=yes
--download-mumps=yes --download-scalapack=yes --download-superlu_dist=yes
--download-blacs=yes --download-f-blas-lapack=yes --download-plapack=yes
--download-parmetis=yes
Working directory: /home/bogdan/petsc-new-opt
Machine platform:('Linux', 'tau', '2.6.41.1-1.fc15.x86_64', '#1 SMP Fri
Nov 11 21:36:28 UTC 2011', 'x86_64', 'x86_64')

_________mpich2___________*fedora15 provided

MPICH2 Version:    	1.4.1p1
MPICH2 Release date:	Thu Sep  1 13:53:02 CDT 2011
MPICH2 Device:    	ch3:nemesis
MPICH2 configure: 	--build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info --enable-sharedlibs=gcc
--enable-shared --enable-lib-depend --disable-rpath --enable-fc
--with-device=ch3:nemesis --with-pm=hydra:gforker
--sysconfdir=/etc/mpich2-x86_64 --includedir=/usr/include/mpich2-x86_64
--bindir=/usr/lib64/mpich2/bin --libdir=/usr/lib64/mpich2/lib
--datadir=/usr/share/mpich2 --mandir=/usr/share/man/mpich2
--docdir=/usr/share/mpich2/doc --htmldir=/usr/share/mpich2/doc
--with-hwloc-prefix=system --with-java=/etc/alternatives/java_sdk
FC=gfortran F77=gfortran CFLAGS=-m64 -O2 -fPIC CXXFLAGS=-m64 -O2 -fPIC
FCFLAGS=-m64 -O2 -fPIC FFLAGS=-m64 -O2 -fPIC LDFLAGS=-Wl,-z,noexecstack
MPICH2LIB_CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
MPICH2LIB_CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
MPICH2LIB_FCFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
MPICH2LIB_FFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
MPICH2 CC: 	gcc -m64 -O2 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic  -O2
MPICH2 CXX: 	c++ -m64 -O2 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -O2
MPICH2 F77: 	gfortran -m64 -O2 -fPIC -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -O2
MPICH2 FC: 	gfortran -m64 -O2 -fPIC -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -O2




--------------------------------------

Cosmin-Bogdan DITA



More information about the petsc-users mailing list