Wiss. Rechnen » Fortran
 

There are two different Fortran compilers on the cluster: one is gfortran which is part of the Gnu Compiler Collection (GCC) and the other is the Intel Fortran Compiler.

GCC Fortran compiler (gfortran)

When no module is specifically loaded, gfortran is already available in the version 4.8.5. It is however more practical to use the newer version 6.3.0 by loading the module gcc.

$ module load gcc
$ gfortran --version
GNU Fortran (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

Intel Fortran compiler

There are multiple versions of the Intel compiler installed, all of them require loading the corresponding module. The various available modules can be listed with the command module avail intel/compiler. Here is an example call for the Fortran compiler:

$ module load intel/compiler
$ ifort --version
ifort (IFORT) 18.0.1 20171018
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

 

In this example, the module was loaded without specifying a version. In that case, the default setting for the module is used (it is marked with (D) on a module avail).

Aktualisiert um 12:09 am 14. August 2018 von Jan Philipp Stephan