Compiling and linking code

Compilers

Language

Compiler name

C

blrts_xlc

C++

blrts_xlC

F77

blrts_xlf

F90

blrts_xlf90

F95

blrts_xlf95

(warning) Note that mpicc and mpif77 are available, but they use the GNU gcc compilers, which do not offer the level of performance of the XL compilers. Please use the XL compilers when compiling your codes.

Compiler flags

Example

bash$ blrts_xlc -c example.c -I/bgl/BlueLight/ppcfloor/bglsys/include
bash$ blrts_xlc -o example example.o -I/bgl/BlueLight/ppcfloor/bglsys/include -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts
bash$ mpxlc -c example.c
bash$ mpxlc -o example example.o

Note: The compile and link flags are the same for Fortran77/90/95 and C/C++