<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Development%2FAOCC</id>
	<title>Development/AOCC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Development%2FAOCC"/>
	<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Development/AOCC&amp;action=history"/>
	<updated>2026-11-13T06:40:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=Development/AOCC&amp;diff=16621&amp;oldid=prev</id>
		<title>M Carmesin at 15:27, 11 November 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Development/AOCC&amp;diff=16621&amp;oldid=prev"/>
		<updated>2026-11-11T15:27:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:27, 11 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Softwarepage|compiler/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gnu&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Softwarepage|compiler/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aocc&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| width=600px class=&quot;wikitable&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| width=600px class=&quot;wikitable&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>M Carmesin</name></author>
	</entry>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=Development/AOCC&amp;diff=16620&amp;oldid=prev</id>
		<title>M Carmesin: Created page with &quot;{{Softwarepage|compiler/gnu}}  {| width=600px class=&quot;wikitable&quot; |- ! Description !! Content |- | module load | compiler/aocc |- | License | Proprietary [https://www.amd.com/de/developer/aocc/aocc-compiler/eula.html] |- |Citing | n/a |- | Links | [https://www.amd.com/de/developer/aocc/aocc-compiler.html AOCC Homepage] |- | Graphical Interface | No |- | Included modules | clang &amp;#124; clang++ &amp;#124; flang |} &lt;br&gt; = Description = AMD Optimizing C/C++ and Fortran Compilers (...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Development/AOCC&amp;diff=16620&amp;oldid=prev"/>
		<updated>2026-11-11T13:13:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Softwarepage|compiler/gnu}}  {| width=600px class=&amp;quot;wikitable&amp;quot; |- ! Description !! Content |- | module load | compiler/aocc |- | License | Proprietary [https://www.amd.com/de/developer/aocc/aocc-compiler/eula.html] |- |Citing | n/a |- | Links | [https://www.amd.com/de/developer/aocc/aocc-compiler.html AOCC Homepage] |- | Graphical Interface | No |- | Included modules | clang | clang++ | flang |} &amp;lt;br&amp;gt; = Description = AMD Optimizing C/C++ and Fortran Compilers (...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Softwarepage|compiler/gnu}}&lt;br /&gt;
&lt;br /&gt;
{| width=600px class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Description !! Content&lt;br /&gt;
|-&lt;br /&gt;
| module load&lt;br /&gt;
| compiler/aocc&lt;br /&gt;
|-&lt;br /&gt;
| License&lt;br /&gt;
| Proprietary [https://www.amd.com/de/developer/aocc/aocc-compiler/eula.html]&lt;br /&gt;
|-&lt;br /&gt;
|Citing&lt;br /&gt;
| n/a&lt;br /&gt;
|-&lt;br /&gt;
| Links&lt;br /&gt;
| [https://www.amd.com/de/developer/aocc/aocc-compiler.html AOCC Homepage]&lt;br /&gt;
|-&lt;br /&gt;
| Graphical Interface&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
| Included modules&lt;br /&gt;
| clang &amp;amp;#124; clang++ &amp;amp;#124; flang&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
= Description =&lt;br /&gt;
AMD Optimizing C/C++ and Fortran Compilers (AOCC) consist of tools to compile C, C++ and Fortran programs:&lt;br /&gt;
{| width=400px class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;padding:3px&amp;quot;| clang&lt;br /&gt;
|style=&amp;quot;padding:3px&amp;quot;| AMD C compiler&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;padding:3px&amp;quot;| clang++&lt;br /&gt;
|style=&amp;quot;padding:3px&amp;quot;| AMD C++ compiler&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;padding:3px&amp;quot;| flang&lt;br /&gt;
|style=&amp;quot;padding:3px&amp;quot;| AMD Fortran compiler&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
More information about the MPI versions of the GCC Compiler is available here: &lt;br /&gt;
* [[Development/Parallel_Programming|Best Practices Guide for Parallel Programming]].&lt;br /&gt;
&lt;br /&gt;
= Optimizations =&lt;br /&gt;
You can turn on various optimization options to enhance the performance of your program. Which options are the best depends on the specific program and can be determined by benchmarking your code. A command which gives good performance and a decent file size is&lt;br /&gt;
&amp;lt;pre&amp;gt;$ gcc -march=native -O2 ex.c -o ex&amp;lt;/pre&amp;gt;&lt;br /&gt;
There are more aggressive optimization flags but the compiled programs can get quite large and the compilation process will probably take much longer. Moreover it can happen that the so compiled program is even slower. Such a command would be for example&lt;br /&gt;
&amp;lt;pre&amp;gt;$ gcc -march=native -O3 ex.c -o ex&amp;lt;/pre&amp;gt;&lt;br /&gt;
For a complete list of all the optimization options execute&lt;br /&gt;
&amp;lt;pre&amp;gt;$ gcc --help=optimizers&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Profiling with Gprof ==&lt;br /&gt;
Gprof is the profiler which belongs to the gcc compiler. Gprof is also installed on the system and can be used to profile your code. The profiler supports C, C++, Pascal and Fortran 77 program code. With this tool it is possible to analyse call times and time spent within program functions.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The first required step is to compile your program with the profiling flag &amp;quot;-pg&amp;quot;.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ gcc -pg ex.c -o ex&amp;lt;/pre&amp;gt;&lt;br /&gt;
Compiled in this way your program will generate profiling data during execution. By default a file named gmon.out can be found in the work directory after running the program.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ ./ex&amp;lt;/pre&amp;gt;&lt;br /&gt;
The next step is to run the gprof program to analyse the gmon.out profiling data file.  This file contains profiling data concerning the program execution, like an overview, time information or the call graph, in human readable format.&lt;br /&gt;
&amp;lt;pre&amp;gt;$ gprof gmon.out ex &amp;gt; outputfile.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>M Carmesin</name></author>
	</entry>
</feed>