[PATCH] [gomp4] Initial support of OpenACC loop directive in C front-end.
Thomas Schwinge
thomas@codesourcery.com
Wed Mar 19 19:39:00 GMT 2014
Hi Ilmir!
On Tue, 18 Mar 2014 16:37:24 +0400, Ilmir Usmanov <i.usmanov@samsung.com> wrote:
> This patch introduces support of OpenACC loop directive (and combined
> directives) in C front-end up to GENERIC. Currently no clause is allowed.
> --- /dev/null
> +++ b/gcc/testsuite/c-c++-common/goacc/loop-1.c
> @@ -0,0 +1,89 @@
> +/* { dg-do compile } */
> +
> +int test1()
> +{
> + int i, j, k, b[10];
> + int a[30];
> + double d;
> + float r;
> + i = 0;
> + #pragma acc loop
> + for (i = 1; i < 10; i++)
> + {
> + }
Do you intend to support loop constructs that are not nested in a
parallel or kernels construct? As I'm reading it, the specification is
not clear on this. (I guess I'll raise this question with the OpenACC
guys.)
Grüße,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140319/5e5da241/attachment.sig>
More information about the Gcc-patches
mailing list