Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
AlgorithmTestTraits Class Reference

Generic functional test for the TdaoTester algorithm. More...

Collaboration diagram for AlgorithmTestTraits:
Collaboration graph

Detailed Description

Generic functional test for the TdaoTester algorithm.

To use you will first need to create suitable Traits descriptions of the algorithm and the hardware requiremnst it needs to run.

e.g.

struct CudaTraits : public TdaoTesterTraits<cuda::Tdao::Architecture,cuda::Tdao::ArchitectureCapability>
{
typedef test::TdaoTesterTraits<cuda::Tdao::Architecture, typename cuda::Tdao::ArchitectureCapability> BaseT;
typedef Tdao::Architecture Arch;
typedef typename BaseT::DeviceType DeviceType;
};

Instantiate your algorithm tests by constructing suitableand then instantiate them with the INSTANTIATE_TYPED_TEST_CASE_P macro

e.g.

typedef ::testing::Types<CudaTraits, OpenClTraits> MyTypes;
INSTANTIATE_TYPED_TEST_CASE_P(MyAlgo, TdaoTester, MyTypes);

n.b. the INSTANTIATE_TYPED_TEST_CASE_P must be in the same namespace as this class


The documentation for this class was generated from the following file: