8#ifndef VCLUSTER_UNIT_TEST_UTIL_CUDA_CUH_
9#define VCLUSTER_UNIT_TEST_UTIL_CUDA_CUH_
12template<
typename T,
typename Memory,
template <
typename>
class layout_base>
void test_single_all_broadcast_primitives(
Vcluster<> & vcl)
36 for (
size_t i = 0 ; i < bdata.
size() ; i++)
37 {BOOST_REQUIRE_EQUAL(i,(
size_t)bdata.get(i));}
43template<
typename T,
typename Memory,
template <
typename>
class layout_base>
void test_single_all_broadcast_complex(
Vcluster<> & vcl)
52 bdata.template get<0>(bdata.
size()-1) = 0;
53 bdata.template get<1>(bdata.
size()-1) = 1000;
55 bdata.template get<0>(bdata.
size()-1) = 1;
56 bdata.template get<1>(bdata.
size()-1) = 1001;
58 bdata.template get<0>(bdata.
size()-1) = 2;
59 bdata.template get<1>(bdata.
size()-1) = 1002;
61 bdata.template get<0>(bdata.
size()-1) = 3;
62 bdata.template get<1>(bdata.
size()-1) = 1003;
64 bdata.template get<0>(bdata.
size()-1) = 4;
65 bdata.template get<1>(bdata.
size()-1) = 1004;
67 bdata.template get<0>(bdata.
size()-1) = 5;
68 bdata.template get<1>(bdata.
size()-1) = 1005;
70 bdata.template get<0>(bdata.
size()-1) = 6;
71 bdata.template get<1>(bdata.
size()-1) = 1006;
81 for (
size_t i = 0 ; i < bdata.
size() ; i++)
83 BOOST_REQUIRE_EQUAL(i,(
size_t)bdata.template get<0>(i));
84 BOOST_REQUIRE_EQUAL(i+1000,(
size_t)bdata.template get<1>(i));
void execute()
Execute all the requests.
bool Bcast(openfpm::vector< T, Mem, layout_base > &v, size_t root)
Broadcast the data to all processors.
size_t getProcessUnitID()
Get the process unit id.
Implementation of VCluster class.
Implementation of 1-D std::vector like structure.