CMS 3D CMS Logo

Classes | Typedefs | Functions
cudatest Namespace Reference

Classes

class  TestAlgo
 

Typedefs

using Array = portabletest::Array
 
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

◆ Array

Definition at line 11 of file TestDeviceCollection.h.

◆ Matrix

Definition at line 10 of file TestDeviceCollection.h.

◆ TestDeviceCollection

Definition at line 14 of file TestDeviceCollection.h.

◆ TestHostCollection

Definition at line 14 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 HLT_2024v13_cff::flags, mps_fire::i, and makeMuonMisalignmentScenario::matrix.

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