Scientific Computing & Visualization
Help Contact
About Accounts Computation Visualization Documentation Services

Table 3. All cross compilers available to build executables for the Blue Gene
(See template or example for additional instructions)

Language Compiler Name Default File Suffix Notes
Fortran 77 blrts_xlf .f Invokes the XL Fortran 77 compiler.
  blrts_fort77 .f same as blrts_xlf
  blrts_f77 .f same as blrts_xlf
GNU f77 blrts_g77 .f Invokes Gnu fortran 77 compiler. mpif77* available
Fortran 90 blrts_xlf90 .f, .f90 Invokes the XL Fortran 90 compiler.
  blrts_f90 .f, .f90 same as blrts_xlf90
Fortran 95 blrts_xlf95 .f, .f90 Invokes the XL Fortran 95 compiler.
symbol blrts_f95 .f, .f90 same as blrts_xlf95
C blrts_xlc .c Invokes the compiler for C source files. Compiler options implied are : -qlanglvl=extc89 -qalias=ansi -qcpluscmt -qkeyword=inline
  blrts_cc .c Invokes the compiler for C source files. Compiler options implied are : -qlanglvl=extended -qnoro -qnoroconst
  blrts_c89 .c Invokes C compiler. Compliler options implied are : -qlanglvl=stdc89 -qalias=ansi -qstrict=induction -qnolonglong -D_ANSI_C_SOURCE -D__STRICT_ANSI__
  blrts_c99 .c Invokes C compiler with support of C99 language features. Compiler options implied are : -qlanglvl=extc89 -qalias=ansi -qcpluscmt -qkeyword=inline
GNU C blrts_gcc .c Invokes GNU C compiler. mpicc* available
C++ blrts_xlC .C Invokes XL C++ compiler.
  blrts_c++ .C Same as blrts_xlC.
GNU C++ blrts_g++ .C Invokes GNU C++ compiler.

  • * For GNU cross compilers, you could, alternatively, use mpif77 for fortran 77 or mpicc for C. These two scripts' functionalities are similar to the corresponding ones on the Linux Cluster (Cootie/Skate). No similar scripts exist for the XL cross compilers.
  • For C++, an additional library, libcxxmpich.rts.a, at $MPI_PATH, is required.
  • For C++, include MPI header file mpi.h (just like for C) where necessary, before stdio.h and iostream.h, if used. In addition, the following flag must be included during compilation
        lee % blrts_xlC -o myexec -DHAVE_MPI_CXX -O3 . . .     

    Here is the template makefile and an example makefile.

Boston University
Boston University
 
OIT | CCS | September 21, 2007  
Scientific Computing & Visualization Boston University home page Boston University home page