This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [hsa merge 00/10] Merge of HSA branch
- From: Martin Jambor <mjambor at suse dot cz>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 2 Feb 2016 15:20:16 +0100
- Subject: Re: [hsa merge 00/10] Merge of HSA branch
- Authentication-results: sourceware.org; auth=none
- References: <20160113173925 dot 220029649 at virgil dot suse dot cz> <20160119104533 dot GD30403 at virgil dot suse dot cz> <CAFiYyc1c+y1abcbXubfB+5n1FhV34m29KTevimb25Q=TiJoWkw at mail dot gmail dot com> <alpine dot LSU dot 2 dot 20 dot 1601211709300 dot 5214 at anthias> <20160127142025 dot GD29688 at virgil dot suse dot cz> <alpine dot LSU dot 2 dot 20 dot 1601280811470 dot 4948 at anthias>
Hi,
On Thu, Jan 28, 2016 at 08:18:27AM -0700, Gerald Pfeifer wrote:
>
> This is okay with the changes/considering the questions above.
>
thanks for the feedback. I have committed the following after
incorporating the comments.
Martin
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v
retrieving revision 1.52
diff -u -r1.52 changes.html
--- changes.html 25 Jan 2016 15:09:55 -0000 1.52
+++ changes.html 2 Feb 2016 14:09:11 -0000
@@ -272,6 +272,30 @@
</ul>
<!-- <h3 id="avr">AVR</h3> -->
+<h3 id="hsa">Heterogeneous Systems Architecture</h3>
+ <ul>
+ <li><p>GCC can now generate HSAIL (Heterogeneous System Architecture
+ Intermediate Language) for simple OpenMP device constructs if
+ configured with <code>--enable-offload-targets=hsa</code>. A new
+ libgomp plugin then runs the HSA GPU kernels implementing these
+ constructs on HSA capable GPUs via a standard HSA run time.</p>
+
+ <p>If the HSA compilation back end determines it cannot output HSAIL
+ for a particular input, it gives a warning by default. These
+ warnings can be suppressed with <code>-Wno-hsa</code>. To give a few
+ examples, the HSA back end does not implement compilation of code
+ using function pointers, automatic allocation of variable sized
+ arrays, functions with variadic arguments as well as a number of
+ other less common programming constructs.</p>
+
+ <p>When compilation for HSA is enabled, the compiler attempts to
+ compile composite OpenMP constructs
+ <blockquote><pre>
+#pragma omp target teams distribute parallel for</pre></blockquote>
+ into parallel HSA GPU kernels.</p>
+ </li>
+ </ul>
+
<h3 id="x86">IA-32/x86-64</h3>
<ul>
<li>GCC now supports the Intel CPU named Skylake with AVX-512 extensions
Index: index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/index.html,v
retrieving revision 1.993
diff -u -r1.993 index.html
--- index.html 30 Jan 2016 06:01:48 -0000 1.993
+++ index.html 2 Feb 2016 14:10:25 -0000
@@ -50,6 +50,13 @@
<h2 id="news">News</h2>
<dl>
+<dt><span> Heterogeneous Systems Architecture support</span>
+ <span class="date">[2016-01-27]</span></dt>
+ <dd><a href="http://www.hsafoundation.com/"> Heterogeneous Systems
+ Architecture 1.0</a> <a href="https://gcc.gnu.org/gcc-6/changes.html#hsa">
+ support was added to GCC</a>, contributed by Martin Jambor, Martin LiÅka
+ and Michael Matz from SUSE.</dd>
+
<dt><span><a href="gcc-5/">GCC 5.3</a> released</span>
<span class="date">[2015-12-04]</span></dt>
<dd></dd>