Debian Codegraph @

src/acl/DataTypes/aclVariableSP.cxx

raw
1 /*
2 * Advanced Simulation Library <http://asl.org.il>
3 *
4 * Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5 *
6 *
7 * This file is part of Advanced Simulation Library (ASL).
8 *
9 * ASL is free software: you can redistribute it and/or modify it
10 * under the terms of the GNU Affero General Public License as
11 * published by the Free Software Foundation, version 3 of the License.
12 *
13 * ASL is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with ASL. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23
24 #include "aclVariableSP.h"
25 #include "../aclUtilities.h"
26 #include "../aclTypesList.h"
27 #include "../aclHardware.h"
28
29
30 namespace acl
31 {
32
33
34 template <> unsigned int VariableSP<cl_int>::id(0);
35 template <> const string VariableSP<cl_int>::prefix("vsp_i");
36
37 template <> unsigned int VariableSP<cl_uint>::id(0);
38 template <> const string VariableSP<cl_uint>::prefix("vsp_ui");
39
40 template <> unsigned int VariableSP<cl_float>::id(0);
41 template <> const string VariableSP<cl_float>::prefix("vsp_f");
42
43 template <> unsigned int VariableSP<cl_double>::id(0);
44 template <> const string VariableSP<cl_double>::prefix("vsp_d");
45
46 template <> unsigned int VariableSP<cl_long>::id(0);
47 template <> const string VariableSP<cl_long>::prefix("vsp_l");
48
49 template <typename T> string VariableSP<T>::getTypeSignature(const KernelConfiguration & kernelConfig) const
50 {
51 return TYPE[typeID] + " " + name;
52 }
53 #define BOOST_TT_rep_expression(r, data, T) \
54 template string VariableSP<T>::getTypeSignature(const KernelConfiguration & kernelConfig) const;
55 BOOST_PP_SEQ_FOR_EACH(BOOST_TT_rep_expression, ~, BOOST_TT_acl_types)
56 #undef BOOST_TT_rep_expression
57
58 } // namespace acl