[petsc-users] Preprocessor definition in makefile for IBM XL Fortran Compiler
Danyang Su
danyang.su at gmail.com
Tue Aug 12 22:38:55 CDT 2014
Hi All,
Does any one know how to use the preprocessor definition flags for IBM XL
Compiler on IBM BG/Q system?
I can use FPPFLAGS (below) for Intel fortran compiler and Gfortran, but IBM
XL Fortran compiler cannot recognise it. I also tried to use FPPFLAGS_IBMXL
(below) but without success.
How can I set the FPPFLAGS for IBM XL Compiler? It seems a little painful
to support it.
Thanks,
Danyang
#makefile
include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules
SRC =./../../
FPPFLAGS = -DLINUX -DRELEASE -DPETSC -DMPI
FPPFLAGS_IBMXL = -WF,-DLINUX -WF,-DRELEASE -WF,-DPETSC -WF,-DMPI
DLIB =
# Note: Order of the following code files is the same with that in visual
fortran project buildlog
SOURCES = $(SRC)common.o\
$(SRC)input.o\
$(SRC)model.o\
......
example: $(SOURCES) chkopts
-${FLINKER} $(FPPFLAGS_IBMXL) -o example $(SOURCES) ${PETSC_LIB}
${DLIB}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140812/6da0e575/attachment.html>
More information about the petsc-users
mailing list