public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: Julian Brown <julian@codesourcery.com>
Cc: <gcc-patches@gcc.gnu.org>, Jakub Jelinek <jakub@redhat.com>
Subject: Re: [gomp4] [1/3] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin
Date: Thu, 16 Oct 2014 17:06:00 -0000	[thread overview]
Message-ID: <87h9z4uf0a.fsf@schwinge.name> (raw)
In-Reply-To: <20141014171118.6cec6fb4@octopus>

[-- Attachment #1: Type: text/plain, Size: 2738 bytes --]

Hi Julian!

On Tue, 14 Oct 2014 17:11:18 +0100, Julian Brown <julian@codesourcery.com> wrote:
> This is a slightly-updated version of the following patch, but this
> time tested (with the aid of a series of patches implementing PTX
> support from Bernd Schmidt), and against the gomp4 branch:
> 
> https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02022.html
> 
> Results (at least for the parts where the middle-end support is on the
> branch already) are comparable with our local development branch.
> 
> Many of Jakub's initial review comments from the mainline version of
> the patch have not yet been addressed, but I have a couple of bits ready
> as follow-up patches and will be posting those shortly also. I plan to
> address the remainder of the issues directly on the gomp4 branch, if
> possible.
> 
> OK to apply (to the gomp4 branch)?

Yes, thanks!  Also the tests and initial documentation patches.

As you're saying, further incremental patch will be required on top of
that; just one small request at this time:

>     libgomp/

>     * oacc-host.c: New file.

As this one completely obsoletes the existing non-shared memory host
plugin, you might as well just remove that file, libgomp/plugin-host.c,
as part of your commit.


Also to everyone working on the gomp-4_0-branch: a patch like the
following one will temporarily be required to avoid a lot of ICEs, until
propagation of options (-fopenacc, -fopenmp) is available in
LTO/offloading mode; for the time being, always enable all OpenACC and
OpenMP builtins:

--- gcc/builtins.def
+++ gcc/builtins.def
@@ -151,7 +151,8 @@ along with GCC; see the file COPYING3.  If not see
 #undef DEF_GOACC_BUILTIN
 #define DEF_GOACC_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
   DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE,    \
-               false, true, true, ATTRS, false, flag_openacc)
+               false, true, true, ATTRS, false, \
+	       (/* TODO */ true || flag_openacc))
 #undef DEF_GOACC_BUILTIN_COMPILER
 #define DEF_GOACC_BUILTIN_COMPILER(ENUM, NAME, TYPE, ATTRS) \
   DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE,    \
@@ -163,7 +164,7 @@ along with GCC; see the file COPYING3.  If not see
 #define DEF_GOMP_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
   DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE,    \
                false, true, true, ATTRS, false, \
-	       (flag_openmp || flag_tree_parallelize_loops))
+	       (/* TODO */ true || flag_openmp || flag_tree_parallelize_loops))
 
 /* Builtin used by implementation of Cilk Plus.  Most of these are decomposed
    by the compiler but a few are implemented in libcilkrts.  */ 


Grüße,
 Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 472 bytes --]

  reply	other threads:[~2014-10-16 17:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 16:12 Julian Brown
2014-10-14 16:33 ` [gomp4] [2/3] OpenACC 2.0 support for libgomp - new tests Julian Brown
2014-10-14 16:12   ` [gomp] [3/3] OpenACC 2.0 support for libgomp - documentation Julian Brown
2014-10-16 17:06     ` Thomas Schwinge [this message]
2014-11-05 16:13     ` [gomp4] OpenACC documentation updates Thomas Schwinge
2014-10-28 16:07   ` [gomp4] [2/3] OpenACC 2.0 support for libgomp - new tests Thomas Schwinge
2014-10-29 19:54     ` [gomp4] libgomp: Also consider --with-cuda-driver flags for build-tree testing (was: [2/3] OpenACC 2.0 support for libgomp - new tests) Thomas Schwinge
2014-11-05 16:17   ` [gomp4] libgomp testsuite: OpenACC C++ " Thomas Schwinge
2014-11-13 13:32   ` [gomp4] [2/3] OpenACC 2.0 support for libgomp - new tests Thomas Schwinge
2014-10-28 16:15 ` [gomp4] [1/3] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin Thomas Schwinge
2014-10-28 19:42 ` [gomp4] Synchronous mode? (was: [1/3] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin) Thomas Schwinge
     [not found] ` <541877C3.6080507@mentor.com>
2014-12-22 17:33   ` [gomp4] [1/3] OpenACC 2.0 support for libgomp - OpenACC runtime, NVidia PTX/CUDA plugin Thomas Schwinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h9z4uf0a.fsf@schwinge.name \
    --to=thomas@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=julian@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).