Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
3616a8c5
Commit
3616a8c5
authored
Jun 01, 2016
by
Cesar Philippidis
Committed by
Cesar Philippidis
Jun 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re PR c/70688 (bogus OpenACC data clause errors involving reductions)
PR c/70688 * pr70688.c: New file. From-SVN: r237011
parent
880ce6a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
libgomp/ChangeLog
+5
-0
libgomp/testsuite/libgomp.oacc-c-c++-common/pr70688.c
+27
-0
No files found.
libgomp/ChangeLog
View file @
3616a8c5
2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
PR c/70688
* pr70688.c: New file.
2016-05-26 Jakub Jelinek <jakub@redhat.com>
2016-05-26 Jakub Jelinek <jakub@redhat.com>
* testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
* testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
...
...
libgomp/testsuite/libgomp.oacc-c-c++-common/pr70688.c
0 → 100644
View file @
3616a8c5
/* Verify that reduction variables can appear in data clause. */
#include <assert.h>
const
int
n
=
100
;
int
main
()
{
int
s
=
0
;
int
array
[
n
];
for
(
int
i
=
0
;
i
<
n
;
i
++
)
array
[
i
]
=
i
+
1
;
#pragma acc parallel loop num_gangs (10) copy (s) reduction (+:s)
for
(
int
i
=
0
;
i
<
n
;
i
++
)
s
+=
array
[
i
];
#pragma acc parallel loop num_gangs (10) reduction (+:s) copy (s)
for
(
int
i
=
0
;
i
<
n
;
i
++
)
s
+=
array
[
i
];
assert
(
s
==
n
*
(
n
+
1
));
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment