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 
10  view.r() = 1.;
11 
12  for (auto i = 0; i < size; ++i) {
13  view[i] = {0., 0., 0., i, matrix * i};
14  }
15  }
16 
18  testAlgoKernel(collection.view(), collection->metadata().size());
19  }
20 
21 } // namespace cudatest
size
Write out results.
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