Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mpp
MLMC
Commits
083bdb08
Commit
083bdb08
authored
Dec 04, 2020
by
niklas.baumgarten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated TestParallelization
parent
d9682ea5
Pipeline
#121490
passed with stages
in 12 minutes and 22 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
mlmc/tests/TestParallelization.cpp
mlmc/tests/TestParallelization.cpp
+17
-8
No files found.
mlmc/tests/TestParallelization.cpp
View file @
083bdb08
...
...
@@ -3,7 +3,7 @@
TEST
(
TestParallel
,
TestIsInitialized
)
{
EXPECT_TRUE
(
PPM
->
i
sInitialized
());
EXPECT_TRUE
(
PPM
->
I
sInitialized
());
}
TEST
(
TestParallel
,
TestBroadcastDouble
)
{
...
...
@@ -159,13 +159,22 @@ TEST(TestParallel, TestDoubleSplit) {
}
TEST
(
TestParallel
,
TestExchangeBuffer
)
{
// ExchangeBuffer exBuffer;
// short mSend = 1;
// exBuffer.Send(1) << mSend;
// exBuffer.Communicate();
// short mRecv;
// exBuffer.Receive(1) >> mRecv;
// EXPECT_EQ(mSend, mRecv);
ExchangeBuffer
exBuffer
;
std
::
string
mSend
=
"message"
;
std
::
string
mRecv
;
for
(
int
q
=
0
;
q
<
PPM
->
Size
();
q
++
)
{
exBuffer
.
Send
(
q
)
<<
mSend
;
exBuffer
.
Communicate
();
if
(
q
+
1
!=
PPM
->
Size
())
exBuffer
.
Receive
(
q
)
>>
mRecv
;
else
exBuffer
.
Receive
(
q
)
>>
mRecv
;
}
EXPECT_EQ
(
mSend
,
mRecv
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment