COMPILER_VERSION(3) - [COMPILER:INQUIRY] Compiler version string
result = compiler_version()
character(len=:) function compiler_version()
o The return value is a default-kind scalar character with system-dependent length.
COMPILER_VERSION(3) returns a string containing the name and version of the compiler.
None.
The return value contains the name of the compiler and its version number used to compile the file containing the COMPILER_VERSION(3) call.
Sample program:
program demo_compiler_version use, intrinsic :: iso_fortran_env, only : compiler_version implicit none print (2a), & This file was compiled by , & compiler_version() end program demo_compiler_versionResults:
> This file was compiled by GCC version 10.3.0> This file was compiled by Intel(R) Fortran Intel(R) 64 Compiler > Classic for applications running on Intel(R) 64, Version 2021.3.0 Build > 20210609_000000
> This file was compiled by nvfortran 21.5-0 LLVM
Fortran 2008
COMPILER_OPTIONS(3), ISO_FORTRAN_ENV(7)
Fortran intrinsic descriptions (license: MIT) @urbanjost
Nemo Release 3.1 | compiler_version (3fortran) | November 02, 2024 |