3.1.4. Compile command

Fortran/C/C++ compiler can be used on Supercomputer Fugaku.

Compile commands include a cross compiler used on the login node and a native compiler used on the compute node.

  1. Compile command
    Compile command for Fortran,C,C++ language, option to enable automatic parallelization, option to enable OpenMP are as following table.

Language

Compile command (Native compiler)

Compile mode

Enable automatic parallelization option

Enable OpenMP option

Fortran

frtpx (frt)

-

-Kparallel *1

-Kopenmp *2

C

fccpx (fcc)

trad mode

-Kparallel *1

-Kopenmp *2

C

fccpx (fcc)

clang mode

-

-fopenmp *2

C++

FCCpx (FCC)

trad mode

-Kparallel *1

-Kopenmp *2

C++

FCCpx (FCC)

clang mode

-

-fopenmp *2

Note

* 1:Auto parallelization option default is disabled.

* 2:OpenMP option default is disabled.

See also

If you compile separately and include objects that specify the automatic parallel enablement option and the OpenMP enablement option, specify the same option when linking.

  1. MPI program compile command
    To compile a program using MPI, use the commands in the following table. Users can compile / link without being aware of the location of MPI header files / libraries.

Language

Compile command (Native compiler)

Compile mode

Enable auto parallelization option

Enable OpenMP option

Fortran

mpifrtpx (mpifrt)

-

-Kparallel *1

-Kopenmp *2

C

mpifccpx (mpifcc)

trad mode

-Kparallel *1

-Kopenmp *2

C

mpifccpx (mpifcc)

clang mode

-

-fopenmp *2

C++

mpiFCCpx (mpiFCC)

trad mode

-Kparallel *1

-Kopenmp *2

C++

mpiFCCpx (mpiFCC)

clang mode

-

-fopenmp *2

Note

* 1:Auto parallelization option default is disabled.

* 2:OpenMP option default is disabled.

See also

  • When performing separate compilation, link using the MPI compile command when linking MPI programs.

  • If you compile separately and include objects that specify the automatic parallel enablement option and the OpenMP enablement option, specify the same option when linking.