https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64747
Bug ID: 64747 Summary: OpenACC: Rejects "gang()" in acc loop/kernels Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: openacc, rejects-valid Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Example is the code https://github.com/parallel-forall/code-samples/tree/master/posts/002-openacc-example/step3 Compiling the C example fails as follows - the "gang(" looks okay at a glance and it seems to compile correctly with PGI's compiler. [Additionally, the ME support seems to be missing.] gcc -w -fopenacc -I../common *.c -lm laplace2d.c: In function ‘main’: laplace2d.c:80:30: error: expected ‘#pragma acc’ clause before ‘(’ token #pragma acc kernels loop gang(32), vector(16) ^ laplace2d.c:83:22: error: expected ‘#pragma acc’ clause before ‘(’ token #pragma acc loop gang(16), vector(32) ^ laplace2d.c:96:22: error: expected ‘#pragma acc’ clause before ‘(’ token #pragma acc loop gang(16), vector(32) ^ laplace2d.c:80:9: sorry, unimplemented: directive not yet implemented #pragma acc kernels loop gang(32), vector(16) ^ laplace2d.c:93:9: sorry, unimplemented: directive not yet implemented #pragma acc kernels loop