CMS 3D CMS Logo

Classes | Typedefs | Functions
cudatest Namespace Reference

Classes

class  TestAlgo
 

Typedefs

using Matrix = portabletest::Matrix
 
using TestDeviceCollection = cms::cuda::PortableDeviceCollection< portabletest::TestSoA >
 
using TestHostCollection = cms::cuda::PortableHostCollection< portabletest::TestSoA >
 

Functions

static void testAlgoKernel (cudatest::TestHostCollection::View view, int32_t size)
 

Typedef Documentation

◆ Matrix

Definition at line 10 of file TestDeviceCollection.h.

◆ TestDeviceCollection

Definition at line 13 of file TestDeviceCollection.h.

◆ TestHostCollection

Definition at line 13 of file TestHostCollection.h.

Function Documentation

◆ testAlgoKernel()

static void cudatest::testAlgoKernel ( cudatest::TestHostCollection::View  view,
int32_t  size 
)
static

Definition at line 7 of file TestAlgo.cc.

References mps_fire::i, makeMuonMisalignmentScenario::matrix, and findQualityFiles::size.

Referenced by cudatest::TestAlgo::fill().

7  {
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  }
size
Write out results.
portabletest::Matrix Matrix