[petsc-users] Preprocessor definition in makefile for IBM XL Fortran Compiler
Danyang Su
danyang.su at gmail.com
Wed Aug 13 00:10:34 CDT 2014
On Tue, Aug 12, 2014 at 11:41 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> You appear to use:
> PETSC_DIR=/gpfs/vesta-fs0/projects/FASTMath/ATPESC-2014/install/petsc/
> 3.5.1.1/linux-rhel_6-ppc64-gcc-4.4.6/
>
> This is built with gnu compilers - and can't be used from xl compilers.
> [i.e use it with +mpiwrapper-gcc]
>
Yes, with +mpiwrapper-gcc, the codes can be compiled successfully.
Thanks.
>
> Satish
>
> On Tue, 12 Aug 2014, Danyang Su wrote:
>
> > Hi Satish,
> >
> > The log file is attached.
> >
> > There are errors like below:
> >
> > "../../min3p/welcome_pc.F90", line 151.16: 1516-036 (S) Entity iargc has
> > undefined type.
> > "../../min3p/welcome_pc.F90", 1520-031 (W) Option DLINES is ignored
> within
> > Fortran 90 free form and IBM free form.
> > ** welcome === End of Compilation 1 ===
> >
> > I use preprocessor definition so as to exclude these non-standard fortran
> > calling like iargc.
> >
> > Thanks,
> >
> > Danyang
> >
> >
> > On Tue, Aug 12, 2014 at 11:11 PM, Satish Balay <balay at mcs.anl.gov>
> wrote:
> >
> > > 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]$
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140813/4536168e/attachment.html>
More information about the petsc-users
mailing list