CMS 3D CMS Logo

TestAlgo.cc
Go to the documentation of this file.
2 
3 #include "TestAlgo.h"
4 
5 namespace cudatest {
6 
8  const cudatest::Matrix matrix{{1, 2, 3, 4, 5, 6}, {2, 4, 6, 8, 10, 12}, {3, 6, 9, 12, 15, 18}};
9  const cudatest::Array flags = {{6, 4, 2, 0}};
10 
11  view.r() = 1.;
12 
13  for (auto i = 0; i < size; ++i) {
14  view[i] = {0., 0., 0., i, flags, matrix * i};
15  }
16  }
17 
19  testAlgoKernel(collection.view(), collection->metadata().size());
20  }
21 
22 } // namespace cudatest
void fill(cudatest::TestDeviceCollection &collection, cudaStream_t stream) const
portabletest::Matrix Matrix
static void testAlgoKernel(cudatest::TestHostCollection::View view, int32_t size)
Definition: TestAlgo.cc:7