Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
FftTest.cu
1 #include "cheetah/fft/cuda/Fft.cuh"
2 #include "cheetah/fft/test_utils/FftTester.h"
3 #include <memory>
4 
5 
6 namespace ska {
7 namespace cheetah {
8 namespace fft {
9 namespace cuda {
10 namespace test {
11 
12 template<typename NumericalT>
14  : public fft::test::FftTesterTraits<fft::cuda::Fft, NumericalT>
15 {
17  typedef Fft::Architecture Arch;
18  typedef typename BaseT::DeviceType DeviceType;
19 
20  public:
21  template<typename DataType>
22  typename DataType::Allocator allocator(panda::PoolResource<Arch>&) {
23  return typename DataType::Allocator();
24  }
25 };
26 
27 template<typename NumericalT>
28 struct CudaTraits : CudaTraitsBase<NumericalT>
29 {
30 };
31 
32 template<>
33 struct CudaTraits<float> : CudaTraitsBase<float>
34 {
35  static double accuracy() { return 5.0e-5; }
36 };
37 
38 } // namespace test
39 } // namespace cuda
40 } // namespace fft
41 } // namespace cheetah
42 } // namespace ska
43 
44 namespace ska {
45 namespace cheetah {
46 namespace fft {
47 namespace test {
48 
49 typedef ::testing::Types<cuda::test::CudaTraits<float>, cuda::test::CudaTraits<double>> CudaTraitsTypes;
50 INSTANTIATE_TYPED_TEST_CASE_P(Cuda, FftTester, CudaTraitsTypes);
51 
52 } // namespace test
53 } // namespace fft
54 } // namespace cheetah
55 } // namespace ska
static double accuracy()
defines accuracy requirement for when the input data is compared with the Fourier transform followed ...
Definition: FftTester.h:102
Some limits and constants for FLDO.
Definition: Brdz.h:35