Skip to content

Commit 9ba1cbf

Browse files
committed
Test with custom mutex.
1 parent dd8125c commit 9ba1cbf

8 files changed

Lines changed: 144 additions & 144 deletions
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Point 0 :
2-
-723.925
3-
-5515.29
4-
95.0474
5-
-6729
6-
-2140.22
2+
-348.826
3+
769.932
4+
1996.83
5+
-14980.6
6+
-2788.03
77
Point 1 :
8-
-325.634
9-
3921.84
10-
7865.3
11-
4847.89
12-
-3985.11
8+
-336.432
9+
-818.028
10+
3154.85
11+
4708.61
12+
1741.92
1313
Point 2 :
14-
237.233
15-
4779.5
16-
-3268.62
17-
-5359.29
18-
-10427.2
14+
-38.4341
15+
-3102.3
16+
-8004.34
17+
-5462.34
18+
-46717.7
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Point 0 :
2-
-723.925
3-
-5515.29
4-
95.0474
5-
-6729
6-
-2140.22
2+
-348.826
3+
769.932
4+
1996.83
5+
-14980.6
6+
-2788.03
77
Point 1 :
8-
-325.634
9-
3921.84
10-
7865.3
11-
4847.89
12-
-3985.11
8+
-336.432
9+
-818.028
10+
3154.85
11+
4708.61
12+
1741.92
1313
Point 2 :
14-
237.233
15-
4779.5
16-
-3268.62
17-
-5359.29
18-
-10427.2
14+
-38.4341
15+
-3102.3
16+
-8004.34
17+
-5462.34
18+
-46717.7
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Point 0 :
2-
-723.925
3-
-5515.29
4-
95.0474
5-
-6729
6-
-2140.22
2+
-348.826
3+
769.932
4+
1996.83
5+
-14980.6
6+
-2788.03
77
Point 1 :
8-
-325.634
9-
3921.84
10-
7865.3
11-
4847.89
12-
-3985.11
8+
-336.432
9+
-818.028
10+
3154.85
11+
4708.61
12+
1741.92
1313
Point 2 :
14-
237.233
15-
4779.5
16-
-3268.62
17-
-5359.29
18-
-10427.2
14+
-38.4341
15+
-3102.3
16+
-8004.34
17+
-5462.34
18+
-46717.7
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Point 0 :
2-
-723.925
3-
-5515.29
4-
95.0474
5-
-6729
6-
-2140.22
2+
-348.826
3+
769.932
4+
1996.83
5+
-14980.6
6+
-2788.03
77
Point 1 :
8-
-325.634
9-
3921.84
10-
7865.3
11-
4847.89
12-
-3985.11
8+
-336.432
9+
-818.028
10+
3154.85
11+
4708.61
12+
1741.92
1313
Point 2 :
14-
237.233
15-
4779.5
16-
-3268.62
17-
-5359.29
18-
-10427.2
14+
-38.4341
15+
-3102.3
16+
-8004.34
17+
-5462.34
18+
-46717.7

tests/results/FirstOrderReversePassiveCustomMutex.ref

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
Point 0 :
2-
-723.925
2+
-348.826
33
0
44
0
55
0
66
0
77
Point 1 :
8-
-325.634
8+
-336.432
99
0
1010
0
1111
0
1212
0
1313
Point 2 :
14-
237.233
14+
-38.4341
1515
0
1616
0
1717
0
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
Point 0 :
2-
-723.925
3-
-5515.29
4-
95.0474
5-
-6729
6-
-2140.22
2+
-348.826
3+
769.932
4+
1996.83
5+
-14980.6
6+
-2788.03
77
Point 1 :
8-
-325.634
9-
3921.84
10-
7865.3
11-
4847.89
12-
-3985.11
8+
-336.432
9+
-818.028
10+
3154.85
11+
4708.61
12+
1741.92
1313
Point 2 :
14-
237.233
15-
4779.5
16-
-3268.62
17-
-5359.29
18-
-10427.2
14+
-38.4341
15+
-3102.3
16+
-8004.34
17+
-5462.34
18+
-46717.7
Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
Point 0 :
2-
-723.925
3-
-5515.29
4-
95.0474
5-
-6729
6-
-2140.22
7-
2.88369e+07
8-
1.52287e+06
9-
3519.89
10-
3.96565e+06
11-
1.52287e+06
12-
8.3703e+06
13-
-1.30966e+07
14-
6068.5
15-
3519.89
16-
-1.30966e+07
17-
2.94023e+07
18-
2.47353e+06
19-
3.96565e+06
20-
6068.5
21-
2.47353e+06
22-
1.08257e+06
2+
-348.826
3+
769.932
4+
1996.83
5+
-14980.6
6+
-2788.03
7+
-4.19503e+06
8+
1.09601e+06
9+
25105.6
10+
-90987.8
11+
1.09601e+06
12+
3.58603e+06
13+
-5.82185e+06
14+
4335.61
15+
25105.6
16+
-5.82185e+06
17+
2.55514e+07
18+
4.18353e+06
19+
-90987.8
20+
4335.61
21+
4.18353e+06
22+
1.02484e+06
2323
Point 1 :
24-
-325.634
25-
3921.84
26-
7865.3
27-
4847.89
28-
-3985.11
29-
2.45363e+07
30-
2.04504e+07
31-
11528.2
32-
-1.59193e+07
33-
2.04504e+07
34-
4.35072e+07
35-
3.71884e+07
36-
57805.4
37-
11528.2
38-
3.71884e+07
39-
4.81492e+07
40-
4.52196e+06
41-
-1.59193e+07
42-
57805.4
43-
4.52196e+06
44-
-3.22903e+07
24+
-336.432
25+
-818.028
26+
3154.85
27+
4708.61
28+
1741.92
29+
-3.95878e+06
30+
-5.33337e+06
31+
-27268.8
32+
1.14391e+07
33+
-5.33337e+06
34+
1.22911e+08
35+
1.59486e+08
36+
-34592.8
37+
-27268.8
38+
1.59486e+08
39+
2.0342e+08
40+
8.34814e+06
41+
1.14391e+07
42+
-34592.8
43+
8.34814e+06
44+
6.3488e+07
4545
Point 2 :
46-
237.233
47-
4779.5
48-
-3268.62
49-
-5359.29
50-
-10427.2
51-
-8.25368e+07
52-
-6.60466e+07
53-
6916.15
54-
531171
55-
-6.60466e+07
56-
5.86882e+07
57-
8.23864e+07
58-
276447
59-
6916.15
60-
8.23864e+07
61-
6.14194e+07
62-
1.67793e+07
63-
531171
64-
276447
65-
1.67793e+07
66-
4.97229e+08
46+
-38.4341
47+
-3102.3
48+
-8004.34
49+
-5462.34
50+
-46717.7
51+
-2.41648e+06
52+
-1.92288e+06
53+
639.603
54+
-169303
55+
-1.92288e+06
56+
5.64684e+07
57+
4.28497e+07
58+
129011
59+
639.603
60+
4.28497e+07
61+
3.16995e+07
62+
1.49199e+06
63+
-169303
64+
129011
65+
1.49199e+06
66+
4.08705e+07

tests/tests/TestCustomMutex.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct TestCustomMutex : public TestBase<4, 1, 3, TestCustomMutex<_Case>> {
7070
--status;
7171
}
7272
#ifdef _OPENMP
73-
opdi::logic->onMutexAcquired(opdi::LogicInterface::MutexKind::Custom, reinterpret_cast<opdi::LogicInterface::WaitId>(&status));
73+
opdi::logic->onMutexAcquired(opdi::LogicInterface::MutexKind::Custom, reinterpret_cast<opdi::LogicInterface::WaitId>(&status));
7474
#endif
7575
}
7676

@@ -80,7 +80,7 @@ struct TestCustomMutex : public TestBase<4, 1, 3, TestCustomMutex<_Case>> {
8080
#endif
8181
--status;
8282
#ifdef _OPENMP
83-
opdi::logic->onMutexReleased(opdi::LogicInterface::MutexKind::Custom, reinterpret_cast<opdi::LogicInterface::WaitId>(&status));
83+
opdi::logic->onMutexReleased(opdi::LogicInterface::MutexKind::Custom, reinterpret_cast<opdi::LogicInterface::WaitId>(&status));
8484
#endif
8585
}
8686
};
@@ -111,7 +111,7 @@ struct TestCustomMutex : public TestBase<4, 1, 3, TestCustomMutex<_Case>> {
111111
Base::job2(i, in, jobResults[i]);
112112

113113
mutex2.lock();
114-
out2 += jobResults[i];
114+
out2 *= jobResults[i];
115115
mutex2.unlock();
116116
}
117117
}

0 commit comments

Comments
 (0)