Skip to content

Commit f306034

Browse files
committed
TEST: Update reference tests
1 parent 9b9cc2a commit f306034

4 files changed

+16
-6
lines changed

tests/reference/asr-doconcurrentloop_01-7b9a7d3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-doconcurrentloop_01-7b9a7d3.stdout",
9-
"stdout_hash": "dffb1f7233f48b1711345ac6d1649bfdc6d8244f5596e9a2a9144904",
9+
"stdout_hash": "9519c801f6f3612439fef115f1c30385234060565a7dd07e125685a4",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-doconcurrentloop_01-7b9a7d3.stdout

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@
179179
)
180180
(=
181181
(Var 3 nsize)
182-
(IntegerConstant 1234 (Integer 4 []))
182+
(ArraySize
183+
(Var 3 a)
184+
()
185+
(Integer 4 [])
186+
()
187+
)
183188
()
184189
)
185190
(DoConcurrentLoop
@@ -394,7 +399,12 @@
394399
(Var 2 c)]
395400
[(=
396401
(Var 2 N)
397-
(IntegerConstant 1234 (Integer 4 []))
402+
(ArraySize
403+
(Var 2 a)
404+
()
405+
(Integer 4 [])
406+
()
407+
)
398408
()
399409
)
400410
(DoConcurrentLoop

tests/reference/cpp-doconcurrentloop_01-4e9f274.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "cpp-doconcurrentloop_01-4e9f274.stdout",
9-
"stdout_hash": "ee58f996458bdf91f906f012b009681a568ad314c5907d9a698e41b8",
9+
"stdout_hash": "79dc6e24e5f0c768ebbadd5b3bd466b53e1b89608b2d1e1a4a0d4caf",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/cpp-doconcurrentloop_01-4e9f274.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void triad(T0* a, T1* b, float scalar, T2* c)
4848
{
4949
int32_t N;
5050
int32_t i;
51-
N = 1234;
51+
N = a->data->extent(0);
5252
Kokkos::parallel_for(Kokkos::RangePolicy<Kokkos::DefaultExecutionSpace>(0, N - 1+1), KOKKOS_LAMBDA(const long i) {
5353
c->data->operator[](i - c->dims[0].lower_bound) = a->data->operator[](i - a->dims[0].lower_bound) + scalar*b->data->operator[](i - b->dims[0].lower_bound);
5454
});
@@ -75,7 +75,7 @@ void main0()
7575
int32_t nsize;
7676
float scalar;
7777
scalar = 1.00000000000000000e+01;
78-
nsize = 1234;
78+
nsize = a->data->extent(0);
7979
Kokkos::parallel_for(Kokkos::RangePolicy<Kokkos::DefaultExecutionSpace>(0, nsize - 1+1), KOKKOS_LAMBDA(const long i) {
8080
a->data->operator[](i - a->dims[0].lower_bound) = 5.00000000000000000e+00;
8181
b->data->operator[](i - b->dims[0].lower_bound) = 5.00000000000000000e+00;

0 commit comments

Comments
 (0)