Commit 031e4d10 authored by incardon's avatar incardon

Latest modules

parent 4e59f4ea
openfpm_data @ b0cd5f48
Subproject commit 33a5ec1ebc3fc47dd5def0a60f7c352ba810d247
Subproject commit b0cd5f48c6b7e082469729266c4722c80abfdf69
......@@ -779,16 +779,20 @@ BOOST_AUTO_TEST_CASE( vector_dist_gpu_find_buffer_offsets_test )
mem.fill(0);
auto ite = vgp.getGPUIterator();
vgp.hostToDevice<0>();
vgp.hostToDevice<0,1>();
find_buffer_offsets<1,decltype(vgp.toKernel()),decltype(offs.toKernel())><<<ite.wthr,ite.thr>>>(vgp.toKernel(),(int *)mem.getDevicePointer(),offs.toKernel());
CUDA_LAUNCH((find_buffer_offsets<1,decltype(vgp.toKernel()),decltype(offs.toKernel())>),ite,vgp.toKernel(),(int *)mem.getDevicePointer(),offs.toKernel());
offs.template deviceToHost<0,1>();
mem.deviceToHost();
int n_ele = *(int *)mem.getPointer();
BOOST_REQUIRE_EQUAL(n_ele,199);
openfpm::vector<int> ofv;
openfpm::vector<int> ofv2;
for (size_t i = 0 ; i < ofv.size() ; i++)
for (size_t i = 0 ; i < n_ele ; i++)
{
ofv.add(offs.template get<0>(i));
ofv2.add(offs.template get<1>(i));
......
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