3.1.8.2. Compiler mode

The compiler of Supercomputer Fugaku has two modes which the user interface is different.

The mode to use is selected by the option of the translation command.

Mode name

Translattion option

Description

trad mode

-Nnoclang
or
when omitted
  • It is based on the Fujitsu compiler for systems prior to K and PRIMEHPC FX100.

  • The trad mode is suitable for cases where importance is attached to compatibility with conventional Fujitsu compilers.

  • The supported specification is C89/C99/C11, OpenMP 3.1/OpenMP 4.5(part).

  • For details on trad mode, see from “Chapter 2 From Compilation to Execution” to “Chapter 8 Debugging Functions” and “Appendix” from “Translation to Execution” in the C User’s Guide.

clang mode

-Nclang

  • Based on Clang / LLVM compiler, which is open source software.

  • The clang mode is suitable for translating programs that use the latest language specifications and open source software.

  • The supported specification is C89/C99/C11, OpenMP 4.5/OpenMP 5.0(part).

  • ACLE and FP16 support clang mode only.

  • For details on clang mode, please read “Chapter 9 Clang Mode” in the C User’s Guide.

Attention

  • The option system at the time of translation between clang mode and trad mode is different. Therefore, care must be taken when changing the compiler mode used for program translation.

  • Even if the same option is specified at the time of translation, the optimization results may differ between clang mode and trad mode.