Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Version.cpp
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 #include "panda/Version.h"
25 #include "cheetah/version.h"
26 #ifdef ENABLE_SKA_RABBIT
27 #include "rabbit/Version.h"
28 #endif //ENABLE_SKA_RABBIT
29 
30 #define _to_string(_str_) #_str_
31 #define to_string(_str_) _to_string(_str_)
32 #define compare_version(_dep_) static_assert(CHEETAH_##_dep_ == PANDA_##_dep_, to_string(_dep_ mismatch) " between cheetah and panda ( " to_string(CHEETAH_##_dep_) " vs " to_string( PANDA_##_dep_) " )")
33 
34 namespace ska {
35 namespace cheetah {
36 
37 const char* version=to_string(CHEETAH_VERSION);
38 const char* full_version=CHEETAH_VERSION " (" CHEETAH_RCS_VERSION ")";
39 const char* boost_version=to_string(CHEETAH_BOOST_VERSION);
40 const char* cuda_version=to_string(CHEETAH_CUDA_VERSION);
41 const char* panda_version=to_string(PANDA_VERSION);
42 
43 compare_version(BOOST_MAJOR_VERSION);
44 compare_version(BOOST_MINOR_VERSION);
45 static_assert(CHEETAH_BOOST_ASIO_DEBUG == PANDA_BOOST_ASIO_DEBUG, "BOOST_ASIO_DEBUG mistmatch between panda and cheetah");
46 #ifdef ENABLE_CUDA
47 compare_version(CUDA_MAJOR_VERSION);
48 compare_version(CUDA_MINOR_VERSION);
49 #endif // ENABLE_CUDA
50 
51 } // namespace cheetah
52 } // namespace ska
Some limits and constants for FLDO.
Definition: Brdz.h:35