HPC:GCC

From HPC wiki
Revision as of 15:41, 13 August 2019 by Obki (talk | contribs) (→‎Other Pages)

GNU Compiler Collection (GCC)

Currently, there are 4 different versions of the GNU Compiler Collection (GCC) installed on the PMACS HPC system. The system default version is GCC v4.4.7 The other versions of GCC installed are: v4.8.0, v5.3.1 & v6.2.1, all available as modules.

Usage

GCC v4.8.0
[asrini@node063 ~]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 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.

[asrini@node063 ~]$ which gcc
/usr/bin/gcc

[asrini@node063 ~]$ module load devtoolset-2 

[asrini@node063 ~]$ gcc --version
gcc (GCC) 4.8.0 20130510 (Red Hat 4.8.0-5)
Copyright (C) 2013 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.

[asrini@node063 ~]$ which gcc
/opt/rh/devtoolset-2/root/usr/bin/gcc
GCC v5.3.1
[asrini@node063 ~]$ module load gcc/5.3.1 

[asrini@node063 ~]$ gcc --version
gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
Copyright (C) 2015 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.

[asrini@node063 ~]$ which gcc
/opt/rh/devtoolset-4/root/usr/bin/gcc
GCC v6.2.1
[asrini@node063 ~]$ module load gcc/6.2.1 

[asrini@node063 ~]$ gcc --version
gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-3)
Copyright (C) 2016 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.

[asrini@node063 ~]$ which gcc
/opt/rh/devtoolset-6/root/usr/bin/gcc

Other Pages