24 #ifndef SKA_CHEETAH_SIFT_TEST_SIFTTESTER_H 25 #define SKA_CHEETAH_SIFT_TEST_SIFTTESTER_H 27 #include "cheetah/sift/Config.h" 28 #include "cheetah/sift/Sift.h" 29 #include "cheetah/utils/test_utils/AlgorithmTester.h" 30 #include "panda/AlgorithmInfo.h" 31 #include "panda/test/TestHandler.h" 33 #include <gtest/gtest.h> 71 template<
typename SiftAlgo>
73 , typename panda::AlgorithmInfo<SiftAlgo>::ArchitectureCapability>
77 ,
typename panda::AlgorithmInfo<SiftAlgo>::ArchitectureCapability>
BaseT;
80 typedef typename BaseT::PoolType PoolType;
83 struct SiftHandler :
public panda::test::TestHandler
86 typedef panda::test::TestHandler BaseT;
89 SiftHandler() =
default;
90 SiftHandler(SiftHandler
const&) =
delete;
92 void operator()(std::shared_ptr<data::Scl>);
93 std::shared_ptr<data::Scl>
const& data()
const {
return _data; }
96 std::shared_ptr<data::Scl> _data;
101 typedef typename SiftTesterTraits::PoolType PoolType;
104 TestConfig() : _pool(
nullptr)
108 PoolType& pool()
const { assert(_pool);
return *_pool; }
109 void pool(PoolType& pool) { _pool = &pool; }
121 TestConfig& config();
122 SiftHandler& handler();
126 SiftHandler _handler;
127 std::unique_ptr<Api> _api;
130 template <
typename TestTraits>
151 #include "cheetah/sift/test_utils/detail/SiftTester.cpp" 153 #endif // SKA_CHEETAH_SIFT_TEST_SIFTTESTER_H
Some limits and constants for FLDO.
Configuration for the sift module.
Base class for generic algortihm tests that require an accelerator device.
Top level sync + async mixed interface for Sift module.