Skip to content

Commit dba2032

Browse files
committed
Update test and reference values.
1 parent 2672c06 commit dba2032

2 files changed

Lines changed: 24 additions & 17 deletions

File tree

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Point 0 :
22
19.4044
3-
1.88564e+06
4-
-73796.7
5-
9419.23
6-
200020
3+
0
4+
0
5+
0
6+
0
77
Point 1 :
88
-22.677
9-
-2.57708e+06
10-
868308
11-
1.47639e+06
12-
-6.31777e+06
9+
0
10+
0
11+
0
12+
0
1313
Point 2 :
1414
-36.8071
15-
-805435
16-
-1.05138e+06
17-
-347778
18-
-1.36383e+06
15+
0
16+
0
17+
0
18+
0

tests/tests/TestParallelFirstprivate2.hpp

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,17 @@ struct TestParallelFirstprivate2 : public TestBase<4, 1, 3, TestParallelFirstpri
6161
bool wasActive = T::getTape().isActive();
6262

6363
/* set this thread's tape as well as the default tapes passive */
64-
opdi::logic->beginSkippedParallelRegion();
64+
#ifndef BUILD_REFERENCE
65+
opdi::logic->beginSkippedParallelRegion();
66+
#endif
6567
OPDI_PARALLEL()
6668
{
6769
T::getTape().setPassive();
6870
}
6971
OPDI_END_PARALLEL
70-
opdi::logic->endSkippedParallelRegion();
71-
72+
#ifndef BUILD_REFERENCE
73+
opdi::logic->endSkippedParallelRegion();
74+
#endif
7275
OPDI_PARALLEL(firstprivate(helper))
7376
{
7477
int nThreads = omp_get_num_threads();
@@ -84,13 +87,17 @@ struct TestParallelFirstprivate2 : public TestBase<4, 1, 3, TestParallelFirstpri
8487

8588
/* reactive this thread's tape and default tapes if applicable */
8689
if (wasActive) {
87-
opdi::logic->beginSkippedParallelRegion();
90+
#ifndef BUILD_REFERENCE
91+
opdi::logic->beginSkippedParallelRegion();
92+
#endif
8893
OPDI_PARALLEL()
8994
{
9095
T::getTape().setActive();
9196
}
9297
OPDI_END_PARALLEL
93-
opdi::logic->endSkippedParallelRegion();
98+
#ifndef BUILD_REFERENCE
99+
opdi::logic->endSkippedParallelRegion();
100+
#endif
94101
}
95102

96103
OPDI_PARALLEL(firstprivate(helper))

0 commit comments

Comments
 (0)