* Fix openacc testcase
@ 2015-11-13 16:55 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2015-11-13 16:55 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
I've committed this trunk patch. This test case's loop is not parallelizeable,
as it increments a (non-reduction) variable. It thus must be marked 'seq'.
nathan
[-- Attachment #2: test-fix.patch --]
[-- Type: text/x-patch, Size: 687 bytes --]
2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
loop is sequential.
Index: libgomp/testsuite/libgomp.oacc-c-c++-common/collapse-2.c
===================================================================
--- libgomp/testsuite/libgomp.oacc-c-c++-common/collapse-2.c (revision 230324)
+++ libgomp/testsuite/libgomp.oacc-c-c++-common/collapse-2.c (working copy)
@@ -9,7 +9,7 @@ main (void)
int m1 = 4, m2 = -5, m3 = 17;
#pragma acc parallel copy(l)
- #pragma acc loop collapse(3) reduction(+:l)
+ #pragma acc loop seq collapse(3) reduction(+:l)
for (i = -2; i < m1; i++)
for (j = m2; j < -2; j++)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-13 16:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 16:55 Fix openacc testcase Nathan Sidwell
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).