Commit 8991d779 by Jakub Jelinek Committed by Jakub Jelinek

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
parent ae328840
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment