<div dir="ltr">Hi All,<div><br></div><div>Does any one know how to use the preprocessor definition flags for IBM XL Compiler on <span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px"> </span><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px">IBM BG/Q system?</span></div>
<div><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px"><br></span></div><div><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px">I can use FPPFLAGS (below) for Intel fortran compiler and Gfortran, but IBM XL Fortran compiler cannot recognise it. I also tried to use </span><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px">FPPFLAGS_IBMXL (below) but without success.</span></div>
<div><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px"><br></span></div><div><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">How can I set the FPPFLAGS for IBM XL Compiler? It seems a little painful to support it.</span></font></div>
<div><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px"><br></span></font></div><div><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">Thanks,</span></font></div>
<div><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px"><br></span></font></div><div><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">Danyang</span></font></div>
<div><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px"><br></span></div><div><span style="color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif;font-size:14px;line-height:21px">#makefile</span></div>
<div><div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">include ${PETSC_DIR}/conf/variables</span></font></div><div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">include ${PETSC_DIR}/conf/rules</span></font></div>
<div style><span style="font-size:14px;line-height:21px;color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif">SRC =./../../</span><br></div><div style><span style="font-size:14px;line-height:21px;color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif">FPPFLAGS = -DLINUX -DRELEASE -DPETSC -DMPI</span><br>
</div><div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">FPPFLAGS_IBMXL = -WF,-DLINUX -WF,-DRELEASE -WF,-DPETSC -WF,-DMPI</span></font></div>
<div style><span style="font-size:14px;line-height:21px;color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif">DLIB = </span><br></div><div style><span style="font-size:14px;line-height:21px;color:rgb(68,68,68);font-family:Arial,Helvetica,Verdana,'Bitstream Vera Sans',sans-serif"># Note: Order of the following code files is the same with that in visual fortran project buildlog</span><br>
</div><div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">SOURCES = $(SRC)common.o\</span></font></div><div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px"><span class="" style="white-space:pre"> </span>$(SRC)input.o\</span></font></div>
<div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px"><span class="" style="white-space:pre"> </span>$(SRC)model.o\</span></font></div>
<div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">......</span></font></div><div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px">example: $(SOURCES) chkopts</span></font></div>
<div style><font color="#444444" face="Arial, Helvetica, Verdana, Bitstream Vera Sans, sans-serif"><span style="font-size:14px;line-height:21px"> -${FLINKER} $(FPPFLAGS_IBMXL) -o example $(SOURCES) ${PETSC_LIB} ${DLIB}</span></font></div>
</div></div>