GNU Compiler

Version System A System B System C Notes
9.2.0 + (default) Installed in March 2020
8.2.0 + Installed in March 2019
8.1.0 + + Installed in October 2019
7.3.0 + Installed in March 2018
7.2.0 + Installed in March 2018
7.1.0 + Installed in March 2018
6.3.0 + Installed in March 2017
6.2.0 + Installed in December 2016
6.1.0 + + + Installed in October 2016
5.3.0 + Installed in April 2016
4.9.3 +
4.8.5 + (default) + (default)

+ : Available for use
― : Not available for use

Version modulefile
9.2.0 gcc/9.2.0
8.2.0 gcc/8.2.0
8.1.0 gcc/8.1.0
7.3.0 gcc/7.3.0
7.2.0 gcc/7.2.0
7.1.0 gcc/7.1.0
6.3.0 gcc/6.3.0
6.2.0 gcc/6.2.0
6.1.0 gcc/6.1.0
5.3.0 gcc/5.3.0
4.9.3 gcc/4.9.3
4.8.5 gcc/4.8.5

Note that the default compiler of System A is set to Cray and the default compiler of System B and C is set to Intel. Therefore, you need to switch from the default compiler to GNU Compiler by executing the module command as below. The default version of GNU Compiler shown in the above list will be set.

When switching from Cray to GNU Compiler (System A):
$ module switch PrgEnv-cray PrgEnv-gnu
When switching from Intel to GNU Compiler (System B, C):
$ module switch PrgEnv-intel PrgEnv-gnu

When switching between the versions of GNU Compilers, execute the module command with PrgEnv-gnu loaded as below:

$ module switch gcc/4.8.2 gcc/4.6.2

To automatically execute a command when logging in to the System, specify such command in the login shell startup-file by following Setting Up System.
For details on the module command, see Modules.

  • System A

    Language Command Operands
    Fortran ftn ftn [sequence_of_options] sequence_of_files
    C cc cc [sequence_of_options] sequence_of_files
    C++ CC CC [sequence_of_options] sequence_of_files
  • System B and C

    Language Command Operands
    Fortran gfortran gfortran [sequence_of_options] sequence_of_files
    C gcc gcc [sequence_of_options] sequence_of_files
    C++ g++ g++ [sequence_of_options] sequence_of_files

  • Main options (e.g., parallelization, optimization)

    Option Purpose
    -o FILENAME Specifies the name of the object file.
    -mcmodel=medium -fpic -dynamic Compiles codes using more than 2GB of static memory in the System A, D and E.
    -mcmodel=medium Compiles codes using more than 2GB of static memory in the system B and C.
    -fopenmp Enables compiler recognition of OpenMP directives.
    -O0/-O1/-O2/-O3 Specifies general optimization at four levels. (The default is 0.)
  • Massage and debugging options

    Option Purpose
    -Wall Displays all warning messages.
  • Fortran language options

    Option Purpose
    -ffree-form Specifies that Fortran source programs are written in free source form.
    -pedantic Generates messages when nonstandard usage of Fortran is encountered.
    -fimplicit-none Warns of the IMPLICIT type statement.

$ ftn test.f90    # For Fortran
$ cc test.c      # For C
$ CC test.cpp     # For C++
$ tssrun ./a.out    # Execution

$ gfortran test.f90    # For Fortran
$ gcc test.c          # For C
$ g++ test.cpp         # For C++
$ tssrun ./a.out       # Execution

$ gcc -fopenmp test.c
$ tssrun -A p=1:t=8:c=8 ./a.out # The number of parallels = 8

System Library
A Cray MPI Library
B and C OpenMPI Library
  • Cray MPI library is available in the System A. How to compile, link, and run MPI programs, see Cray MPI Library.
  • OpenMPI library is available in the System B and C. How to compile, link, and run MPI programs, see OpenMPI Library.

The following numerical libraries are available when using GNU Compiler. For details on how to use each library, see each library’s page.

Library System A System B and C
Cray LibSci Library + +

+ : Available for all users
― : Not available for use


Copyright © Academic Center for Computing and Media Studies, Kyoto University, All Rights Reserved.