1 extern "C" void abort ();
3 #define M(x, y, z) O(x, y, z)
4 #define O(x, y, z) x ## _ ## y ## _ ## z
6 #pragma omp declare target
11 #define N(x) M(x, G, normal)
12 #include "../libgomp.c/for-2.h"
20 #define S dist_schedule(static, 128)
21 #define N(x) M(x, G, normal)
22 #include "../libgomp.c/for-2.h"
28 #define F distribute simd
31 #define N(x) M(x, G, normal)
32 #include "../libgomp.c/for-2.h"
38 #define F distribute simd
40 #define S dist_schedule(static, 128)
41 #define N(x) M(x, G, normal)
42 #include "../libgomp.c/for-2.h"
48 #define F distribute parallel for
50 #include "../libgomp.c/for-1.h"
54 #define F distribute parallel for dist_schedule(static, 128)
56 #include "../libgomp.c/for-1.h"
60 #define F distribute parallel for simd
62 #include "../libgomp.c/for-1.h"
66 #define F distribute parallel for simd dist_schedule(static, 128)
68 #include "../libgomp.c/for-1.h"
72 #pragma omp end declare target
78 #pragma omp target teams reduction(|:err)
80 err |= test_d_normal ();
81 err |= test_d_ds128_normal ();
82 err |= test_ds_normal ();
83 err |= test_ds_ds128_normal ();
84 err |= test_dpf_static ();
85 err |= test_dpf_static32 ();
86 err |= test_dpf_auto ();
87 err |= test_dpf_guided32 ();
88 err |= test_dpf_runtime ();
89 err |= test_dpf_ds128_static ();
90 err |= test_dpf_ds128_static32 ();
91 err |= test_dpf_ds128_auto ();
92 err |= test_dpf_ds128_guided32 ();
93 err |= test_dpf_ds128_runtime ();
94 err |= test_dpfs_static ();
95 err |= test_dpfs_static32 ();
96 err |= test_dpfs_auto ();
97 err |= test_dpfs_guided32 ();
98 err |= test_dpfs_runtime ();
99 err |= test_dpfs_ds128_static ();
100 err |= test_dpfs_ds128_static32 ();
101 err |= test_dpfs_ds128_auto ();
102 err |= test_dpfs_ds128_guided32 ();
103 err |= test_dpfs_ds128_runtime ();