Commit f01c0ac2 authored by incardon's avatar incardon

Fixing Vcluster tests

parent 9ca08e7b
Pipeline #949 failed with stages
in 35 seconds
......@@ -544,6 +544,7 @@ struct op_ssend_recv_add_sr
layout_base,
prp...>(v2);
#else
size_t old_size = recv.size();
// Merge the information
recv.template add_prp<typename T::value_type,
......@@ -553,7 +554,7 @@ struct op_ssend_recv_add_sr
layout_base,
prp...>(v2);
recv.template hostToDevice<prp...>(recv.size(),recv.size()+v2.size());
recv.template hostToDevice<prp...>(old_size,old_size+v2.size()-1);
#endif
......
......@@ -839,6 +839,13 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_sendrecv_receive_size_known)
// We receive to fill prc_recv2 and sz_recv2
vcl.SSendRecv(v1,v2,prc_send,prc_recv2,sz_recv2);
// carefull because SSendRecv does not fill prc_recv2 with processor that has a sending size of 0
for(size_t i = 0 ; i < v1.size() ; i++)
{
if( i % SSCATTER_MAX == 0)
{prc_recv2.add((i + vcl.getProcessUnitID()) % vcl.getProcessingUnits());}
}
// We reset v2 and we receive again saying that the processors are known and we know the elements
v2.clear();
vcl.SSendRecv(v1,v2,prc_send,prc_recv2,sz_recv2,RECEIVE_KNOWN | KNOWN_ELEMENT_OR_BYTE);
......@@ -920,6 +927,14 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_sendrecv_receive_known)
// Receive to fill prc_recv2
vcl.SSendRecv(v1,v2,prc_send,prc_recv2,sz_recv2);
// carefull because SSendRecv does not fill prc_recv2 with processor that has a sending size of 0
for(size_t i = 0 ; i < v1.size() ; i++)
{
if( i % SSCATTER_MAX == 0)
{prc_recv2.add((i + vcl.getProcessUnitID()) % vcl.getProcessingUnits());}
}
// Reset v2 and sz_recv2
v2.clear();
......
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