[petsc-users] Preprocessor definition in makefile for IBM XL Fortran Compiler

Satish Balay balay at mcs.anl.gov
Tue Aug 12 23:11:09 CDT 2014


On Tue, 12 Aug 2014, Danyang Su wrote:

> On Tue, Aug 12, 2014 at 10:46 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> > I don't understand. Doesn't the following work? What compile commands does
> > make invoke with it?
> >
> Yes, the following doesn't work. I just use "make example &> log.txt" to
> compile it. From the log file, it shows that the FPP FLAGS are not
> recongised.
> The machine is Vesta and I have add  +mpiwrapper-xl to .soft file and
> resoft it.

I wanted to see the contents of log.text. Anyway - here is how it
works on vesta..

Satish

-----------

[balay at vestalac1 test]$ ls
ex1f.F  makefile
[balay at vestalac1 test]$ cat makefile 
CFLAGS           =
FFLAGS           =
CPPFLAGS         =
FPPFLAGS         = -WF,-DDUMMY_FLAG
CLEANFILES       = 

include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

ex1f: ex1f.o  chkopts
        -${FLINKER} -o ex1f ex1f.o  ${PETSC_KSP_LIB}
        ${RM} ex1f.o

[balay at vestalac1 test]$ make ex1f
mpixlf77_r -qnosave -c  -O3 -qhot=level=0 -qsimd=auto -qmaxmem=-1 -qstrict -qstrict_induction   -I/soft/libraries/petsc/3.4.4/xl-opt/include -I/soft/libraries/petsc/3.4.4/xl-opt/include   -WF,-DDUMMY_FLAG -o ex1f.o ex1f.F
** main   === End of Compilation 1 ===
1501-510  Compilation successful for file ex1f.F.
mpixlf77_r -qnosave -O3 -qhot=level=0 -qsimd=auto -qmaxmem=-1 -qstrict -qstrict_induction   -o ex1f ex1f.o  -L/soft/libraries/petsc/3.4.4/xl-opt/lib  -lpetsc -Wl,-rpath,/soft/libraries/petsc/3.4.4/xl-opt/lib -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord -Wl,-rpath,/soft/libraries/alcf/current/xl/SCALAPACK/lib -L/soft/libraries/alcf/current/xl/SCALAPACK/lib -lscalapack -lsuperlu_4.3 -lsuperlu_dist_3.3 -lHYPRE -lspai -lumfpack -lamd -L/soft/libraries/alcf/current/xl/LAPACK/lib -llapack -L/soft/libraries/alcf/current/xl/BLAS/lib -lblas -ltriangle -lchaco -lparmetis -lmetis -lpthread -ldl -lmpichcxx-gcc -lmpichf77-gcc -L/soft/compilers/ibmcmp-nov2013/vacpp/bg/12.1/bglib64 -libmc++ -L/soft/compilers/ibmcmp-nov2013/xlf/bg/14.1/bglib64 -lxlf90_r -lxlomp_ser -lxlfmath 
/bin/rm -f ex1f.o
[balay at vestalac1 test]$ 



More information about the petsc-users mailing list