Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Ddtr.h
1 /*
2  * The MIT License (MIT)
3  *
4  * Copyright (c) 2016 The SKA organisation
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef SKA_CHEETAH_DDTR_DDTR_H
25 #define SKA_CHEETAH_DDTR_DDTR_H
26 
27 #include "cheetah/ddtr/detail/CommonTypes.h"
28 #include "cheetah/ddtr/detail/DdtrModule.h"
29 #include "cheetah/ddtr/detail/CommonDedispersionPlan.h"
30 #include "cheetah/ddtr/astroaccelerate/Ddtr.h"
31 #include "cheetah/ddtr/Config.h"
32 #include "cheetah/ddtr/cpu/Ddtr.h"
33 //#include "cheetah/ddtr/fpga/Ddtr.h"
34 
35 #include "panda/ConfigurableTask.h"
36 #include <memory>
37 
38 namespace ska {
39 namespace cheetah {
40 namespace ddtr {
41 
42 template<class TimeFrequencyType>
44 
45 template<typename FunctorType, typename... Args> class Method {};
46 
52 template<typename ConfigType, typename NumericalRep, template<typename> class AggregationBufferFactoryTemplate=TimeFrequencyFactory>
54  , cpu::Ddtr
55 #ifdef ENABLE_ASTROACCELERATE
57 #endif // ENABLE_ASTROACCELERATE
58 #ifdef ENABLE_SKA_RABBIT
59  //, fpga::Ddtr
60 #endif // ENABLE_SKA_RABBIT
61  >;
62 
67 template<typename ConfigType, typename NumericalRep, template<typename> class AggregationBufferFactoryTemplate=TimeFrequencyFactory>
68 class Ddtr : public DdtrAlgos<ConfigType, NumericalRep, AggregationBufferFactoryTemplate>
69 {
72 
73  public:
74  typedef typename DdtrTraits::DedispersionHandler DedispersionHandler;
75  typedef typename DdtrTraits::DmTrialsType DmTrialsType;
76 
77  public:
78  Ddtr(ConfigType const& config, DedispersionHandler);
79  ~Ddtr();
80 
89  template<typename TimeFreqDataT
90  , typename data::EnableIfIsTimeFrequency<TimeFreqDataT, bool> = true>
91  void operator()(TimeFreqDataT const& input);
92 
97  template<typename T>
98  void operator()(std::shared_ptr<T> const& data);
99 
100 };
101 
102 } // namespace ddtr
103 } // namespace cheetah
104 } // namespace ska
105 
106 #include "cheetah/ddtr/detail/Ddtr.cpp"
107 
108 #endif // SKA_CHEETAH_DDTR_DDTR_H
an nvidia CUDA gpu algorithm for dedispersion
Definition: Ddtr.h:42
generate code for integration of DdtrAlgorithms
Definition: DdtrModule.h:41
Some limits and constants for FLDO.
Definition: Brdz.h:35
DDTR module top level API.
Definition: Ddtr.h:68
A continuous memory container for dispersion measure trials of varying downsamplings.
Definition: DmTrials.h:62
Contains common types used through ddtr.
Definition: CommonTypes.h:42