Debian Codegraph @

libgomp/testsuite/libgomp.c-c++-common/matrix-omp-target-parallel-for-1.c

raw
1 /* This test appears to have too much parallelism to run without a GPU. */
2 /* { dg-do run { target { offload_device } } } */
3 /* { dg-additional-options "-fdump-tree-original -Wall -Wno-unknown-pragmas" } */
4
5 #define COMMON_DIRECTIVE omp target parallel for map(tofrom:result[0:dim0 * dim1]) map(to:matrix1[0:dim0 * dim1], matrix2[0:dim0 * dim1])
6 #define COLLAPSE_1 collapse(1)
7 #define COLLAPSE_2 collapse(2)
8 #define COLLAPSE_3
9
10 #include "matrix-transform-variants-1.h"
11
12 /* A consistency check to prevent broken macro usage. */
13 /* { dg-final { scan-tree-dump-times "omp target" 13 "original" } } */
14 /* { dg-final { scan-tree-dump-times "collapse" 9 "original" } } */
15 /* { dg-final { scan-tree-dump-times "unroll partial" 12 "original" } } */