Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argupta
openfpm_vcluster
Commits
519291ae
Commit
519291ae
authored
Nov 24, 2018
by
incardon
Browse files
Fixing Vcluster for new layout
parent
ee76c91c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/VCluster/VCluster.hpp
View file @
519291ae
...
...
@@ -631,7 +631,10 @@ class Vcluster: public Vcluster_base<InternalMemory>
for
(
size_t
i
=
0
;
i
<
rcv
.
size
()
;
i
++
)
{
rcv
.
get
(
i
).
proc
=
prc
.
get
(
i
);
rcv
.
get
(
i
).
tag
=
tags
.
get
(
i
);
if
(
i
<
tags
.
size
())
{
rcv
.
get
(
i
).
tag
=
tags
.
get
(
i
);}
else
{
rcv
.
get
(
i
).
tag
=
(
unsigned
int
)
-
1
;}
rcv
.
get
(
i
).
pos
=
i
;
}
...
...
src/VCluster/VCluster_semantic_unit_tests.hpp
View file @
519291ae
...
...
@@ -273,6 +273,9 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_gather_5)
{
Vcluster
<>
&
vcl
=
create_vcluster
();
if
(
vcl
.
size
()
==
1
)
{
return
;}
if
(
vcl
.
getProcessingUnits
()
>=
32
)
{
return
;}
...
...
@@ -843,7 +846,10 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_sendrecv_receive_size_known)
for
(
size_t
i
=
0
;
i
<
v1
.
size
()
;
i
++
)
{
if
(
i
%
SSCATTER_MAX
==
0
)
{
prc_recv2
.
add
((
i
+
vcl
.
getProcessUnitID
())
%
vcl
.
getProcessingUnits
());}
{
prc_recv2
.
add
((
i
+
vcl
.
getProcessUnitID
())
%
vcl
.
getProcessingUnits
());
sz_recv2
.
add
(
0
);
}
}
// We reset v2 and we receive again saying that the processors are known and we know the elements
...
...
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