Commit 519291ae authored by incardon's avatar incardon

Fixing Vcluster for new layout

parent ee76c91c
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment