cheshirekow  v0.1.0
fattr.cu.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of mpblocks.
5  *
6  * mpblocks is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * mpblocks is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mpblocks. If not, see <http://www.gnu.org/licenses/>.
18  */
32 #ifndef MPBLOCKS_BITONIC_FATTR_CU_HPP
33 #define MPBLOCKS_BITONIC_FATTR_CU_HPP
34 
38 
39 namespace mpblocks {
40 namespace cuda {
41 namespace bitonic {
42 
43 template <typename KeyType, typename ValueType>
45 {
46  map["sortShared"] .getFrom( &sortShared<KeyType,ValueType> );
47  map["sortSharedInc"].getFrom( &sortSharedInc<KeyType,ValueType> );
48  map["mergeGlobal"] .getFrom( &mergeGlobal<KeyType,ValueType> );
49  map["mergeShared"] .getFrom( &mergeShared<KeyType,ValueType> );
50  map["prepare"] .getFrom( &bitonic::prepare<KeyType> );
51 }
52 
53 
54 
55 template <typename KeyType>
56 void get_fattr_k( fattrMap_t& map )
57 {
58  map["sortShared"] .getFrom( &sortShared<KeyType> );
59  map["sortSharedInc"].getFrom( &sortSharedInc<KeyType> );
60  map["mergeGlobal"] .getFrom( &mergeGlobal<KeyType> );
61  map["mergeShared"] .getFrom( &mergeShared<KeyType> );
62  map["prepare"] .getFrom( &bitonic::prepare<KeyType> );
63 }
64 
65 
66 } // namespace bitonic
67 } // namespace cuda
68 } // namespace mpblocks
69 
70 
71 
72 #endif
void get_fattr_kv(fattrMap_t &map)
Definition: fattr.cu.hpp:44
std::map< std::string, FuncAttributes > fattrMap_t
Definition: fattr.h:43
void get_fattr_k(fattrMap_t &map)
Definition: fattr.cu.hpp:56