Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
CommonDefs.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 
38 #include "cheetah/fldo/CommonDefs.h"
39 
40 
41 #ifndef SKA_CHEETAH_FLDO_CUDA_COMMONDEF_H
42 #define SKA_CHEETAH_FLDO_CUDA_COMMONDEF_H
43 
44 namespace ska {
45 namespace cheetah {
46 namespace fldo {
47 namespace cuda {
48 
49 
50 static constexpr size_t max_frequencies_low = 8192; // MID and LOW have different max
51 static constexpr size_t max_frequencies_mid = 4096; // number of channels
52 static constexpr size_t max_frequencies = max_frequencies_mid;// 8192 exeedes the inner memory size and gives
53  // a run time error.
54  // TODO switch to a different approach.
55 static constexpr size_t min_frequencies = 64;
56 static constexpr size_t o_frequencies = max_frequencies;
57 static constexpr size_t max_seq_measures = 187500;
58 static constexpr size_t o_seq_measures = max_seq_measures;
59 static constexpr size_t max_candidates = 256;
60 static constexpr size_t o_candidates = 128;
61 
62 // intermediate data definitions
63 static constexpr size_t max_phase_recomp = 1; // recompute phases at each iteration
64 static constexpr size_t o_phase_recomp = max_phase_recomp;
65 static constexpr double o_tsampling = 50.e-6;
66 static constexpr double max_timeobs = 1800.;
67 static constexpr size_t max_nsamples = 137438953472;// 2^24*max_frequencies_low
68 static constexpr size_t min_nsamples = 16384; // 2^8*min_frequencies
69 static constexpr size_t max_nrebin = 10;
70 static constexpr size_t max_prebin = (1 << (max_nrebin - 1));
71 static constexpr size_t o_prebin = 1;
72 static constexpr double max_period = 0.049;
73 
74 
75 } // namespace cuda
76 } // namespace fldo
77 } // namespace cheetah
78 } // namespace ska
79 
80 
81 #endif // SKA_CHEETAH_FLDO_CUDA_COMMONDEF_H
Some limits and constants for FLDO.
Definition: Brdz.h:35