task-reduction-8.c (bar): Add in_reduction clause for s[0].
* testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add in_reduction clause for s[0]. From-SVN: r265934
This commit is contained in:
parent
ae32884050
commit
8991d77974
|
@ -1,5 +1,8 @@
|
|||
2018-11-08 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
|
||||
in_reduction clause for s[0].
|
||||
|
||||
* affinity.c (gomp_display_affinity_place): New function.
|
||||
* affinity-fmt.c: New file.
|
||||
* alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
|
||||
|
|
|
@ -45,7 +45,8 @@ unsigned long long int
|
|||
bar (int z, int *a, unsigned long long int *b, int *s)
|
||||
{
|
||||
unsigned long long int x = 1;
|
||||
#pragma omp taskloop reduction (*:x) in_reduction (*:b[0])
|
||||
#pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) \
|
||||
in_reduction (+:s[0])
|
||||
for (int i = z; i < z + 8; i++)
|
||||
{
|
||||
#pragma omp task in_reduction (*:x)
|
||||
|
|
Loading…
Reference in New Issue