Difference between revisions of "HPC:GCC"

From HPC wiki
(Created page with "=== 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 vers...")
 
 
(One intermediate revision by one other user not shown)
Line 40: Line 40:
 
</pre>
 
</pre>
  
===== GCC v6.2.1 =====
+
===== GCC v6.3.1 =====
 
<pre>
 
<pre>
[asrini@node063 ~]$ module load gcc/6.2.1  
+
[asrini@node061 ~]$ module load gcc/6.3.1  
  
[asrini@node063 ~]$ gcc --version
+
[asrini@node061 ~]$ gcc --version
gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-3)
+
gcc (GCC) 6.3.1 20170216 (Red Hat 6.3.1-3)
 
Copyright (C) 2016 Free Software Foundation, Inc.
 
Copyright (C) 2016 Free Software Foundation, Inc.
 
This is free software; see the source for copying conditions.  There is NO
 
This is free software; see the source for copying conditions.  There is NO
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  
[asrini@node063 ~]$ which gcc
+
[asrini@node061 ~]$ which gcc
 
/opt/rh/devtoolset-6/root/usr/bin/gcc
 
/opt/rh/devtoolset-6/root/usr/bin/gcc
 +
</pre>
 +
 +
 +
===== GCC v7.3.1 =====
 +
<pre>
 +
[asrini@node061 ~]$ module load gcc/7.3.1
 +
 +
[asrini@node061 ~]$ gcc --version
 +
gcc (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.
 +
 +
[asrini@node061 ~]$ which gcc
 +
/opt/rh/devtoolset-7/root/usr/bin/gcc
 +
</pre>
 +
 +
 +
===== GCC v8.3.1 =====
 +
<pre>
 +
[asrini@node061 ~]$ module load gcc/8.3.1
 +
 +
[asrini@node061 ~]$ gcc --version
 +
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
 +
Copyright (C) 2018 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@node061 ~]$ which gcc
 +
/opt/rh/devtoolset-8/root/usr/bin/gcc
 
</pre>
 
</pre>
  
 
=== Other Pages ===
 
=== Other Pages ===
 +
----
 +
<div class="mw-collapsible mw-collapsed">
 +
*[[HPC:FAQ|HPC FAQ ]]
 +
*[[HPC:Login|Connecting to the PMACS cluster]]
 +
*[[HPC:User_Guide|User Guide]]
 
*[[HPC:Software|Available Software]]
 
*[[HPC:Software|Available Software]]
*[[HPC:User_Guide|User Guide]]
+
*[[HPC:Archive System|PMACS Archive System]]
*[[HPC:Main_Page|HPC Main Page]]
+
</div>
*[[HPC:Login|Connecting to the PMACS cluster]]
 

Latest revision as of 16:08, 24 December 2019

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.3.1
[asrini@node061 ~]$ module load gcc/6.3.1 

[asrini@node061 ~]$ gcc --version
gcc (GCC) 6.3.1 20170216 (Red Hat 6.3.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@node061 ~]$ which gcc
/opt/rh/devtoolset-6/root/usr/bin/gcc


GCC v7.3.1
[asrini@node061 ~]$ module load gcc/7.3.1 

[asrini@node061 ~]$ gcc --version
gcc (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.

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


GCC v8.3.1
[asrini@node061 ~]$ module load gcc/8.3.1 

[asrini@node061 ~]$ gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
Copyright (C) 2018 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@node061 ~]$ which gcc
/opt/rh/devtoolset-8/root/usr/bin/gcc

Other Pages