On Sat, Apr 28, 2018 at 08:29:48AM -0500, Satish Balay wrote: > > Also we print a summary of compile flags up in the log: > > Using Fortran compile: mpif90 -c -g -O2 -fstack-protector-strong -fPIC > -Wdate-time -D_FORTIFY_SOURCE=2 > -fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. > -I/<<BUILDDIR>>/petsc-3.9.0+dfsg1/include > -I/<<BUILDDIR>>/petsc-3.9.0+dfsg1/mips-linux-gnu-real-debug/include > -I/usr/include/suitesparse -I/usr/include/superlu -I/usr/include/superlu-dist > -I/usr/include/hypre -I/usr/include/hdf5/openmpi -I/usr/include/scotch > -Wdate-time -D_FORTIFY_SOURCE=2
The failing command is: mpif90 -c -g -O2 -fstack-protector-strong -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -fdebug-prefix-map=/home/bunk/build/petsc-3.9.0+dfsg1=. -I/home/bunk/build/petsc-3.9.0+dfsg1/include -I/home/bunk/build/petsc-3.9.0+dfsg1/mips-linux-gnu-real-debug/include -I/usr/include/suitesparse -I/usr/include/superlu -I/usr/include/superlu-dist -I/usr/include/hypre -I/usr/include/hdf5/serial -I/usr/include/scotch -Wdate-time -D_FORTIFY_SOURCE=2 -MMD -MP /home/bunk/build/petsc-3.9.0+dfsg1/src/dm/f90-mod/petscdmmod.F -o mips-linux-gnu-real-debug/obj/dm/f90-mod/petscdmmod.o -J/home/bunk/build/petsc-3.9.0+dfsg1/mips-linux-gnu-real-debug/include I am hitting the 2 GB limit even after changing to -g0 -O0. > Also - current build is with: > Using MAKEFLAGS: -j4 -l4 w -j4 -Oline --jobserver-auth=3,4 -- > PETSC_DIR=/<<BUILDDIR>>/petsc-3.9.0+dfsg1 > PETSC_ARCH=mips-linux-gnu-real-debug > CFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. > CXXFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. > FCFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. > FFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. > > If '-j1' is used - memory usage will go down a bit. [but might not be > sufficient to clear the 2 GB limit] This won't make a difference. Overall memory usage is not a problem here, the machines do have 8 GB RAM. > Satish cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed