Commit | Line | Data |
---|---|---|
10988083 MW |
1 | // -------------------------------------------------------------------------- |
2 | // | |
3 | // Copyright | |
4 | // Markus Wittmann, 2016-2017 | |
5 | // RRZE, University of Erlangen-Nuremberg, Germany | |
6 | // markus.wittmann -at- fau.de or hpc -at- rrze.fau.de | |
7 | // | |
8 | // Viktor Haag, 2016 | |
9 | // LSS, University of Erlangen-Nuremberg, Germany | |
10 | // | |
11 | // This file is part of the Lattice Boltzmann Benchmark Kernels (LbmBenchKernels). | |
12 | // | |
13 | // LbmBenchKernels is free software: you can redistribute it and/or modify | |
14 | // it under the terms of the GNU General Public License as published by | |
15 | // the Free Software Foundation, either version 3 of the License, or | |
16 | // (at your option) any later version. | |
17 | // | |
18 | // LbmBenchKernels is distributed in the hope that it will be useful, | |
19 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | // GNU General Public License for more details. | |
22 | // | |
23 | // You should have received a copy of the GNU General Public License | |
24 | // along with LbmBenchKernels. If not, see <http://www.gnu.org/licenses/>. | |
25 | // | |
26 | // -------------------------------------------------------------------------- | |
27 | #ifndef __KERNEL_FUNCTIONS_H__ | |
28 | #define __KERNEL_FUNCTIONS_H__ | |
29 | ||
30 | #include "BenchKernelD3Q19.h" | |
e3f82424 MW |
31 | #include "BenchKernelD3Q19Aa.h" |
32 | #include "BenchKernelD3Q19AaVec.h" | |
10988083 MW |
33 | #include "BenchKernelD3Q19List.h" |
34 | #include "BenchKernelD3Q19ListAa.h" | |
35 | #include "BenchKernelD3Q19ListAaRia.h" | |
36 | #include "BenchKernelD3Q19ListAaPv.h" | |
37 | #include "BenchKernelD3Q19ListPullSplitNt.h" | |
38 | ||
39 | typedef struct KernelFunctions_ | |
40 | { | |
41 | char Name[128]; | |
42 | void (* Init)(LatticeDesc * ld, KernelData ** kernelData, Parameters * params); | |
43 | void (* Deinit)(LatticeDesc * ld, KernelData ** kernelData); | |
44 | } KernelFunctions; | |
45 | ||
46 | KernelFunctions g_kernels[] = | |
47 | { | |
48 | { | |
49 | .Name = "list-aa-pv-soa", | |
50 | .Init = D3Q19ListAaPvInit_PushSoA, | |
51 | .Deinit = D3Q19ListAaPvDeinit_PushSoA | |
52 | }, | |
53 | { | |
54 | .Name = "list-aa-ria-soa", | |
55 | .Init = D3Q19ListAaRiaInit_PushSoA, | |
56 | .Deinit = D3Q19ListAaRiaDeinit_PushSoA | |
57 | }, | |
58 | { | |
59 | .Name = "list-aa-soa", | |
60 | .Init = D3Q19ListAaInit_PushSoA, | |
61 | .Deinit = D3Q19ListAaDeinit_PushSoA | |
62 | }, | |
63 | { | |
64 | .Name = "list-aa-aos", | |
65 | .Init = D3Q19ListAaInit_PushAoS, | |
66 | .Deinit = D3Q19ListAaDeinit_PushAoS | |
67 | }, | |
68 | { | |
69 | .Name = "list-pull-split-nt-1s-soa", | |
70 | .Init = D3Q19ListPullSplitNt1SInit_PullSoA, | |
71 | .Deinit = D3Q19ListPullSplitNtDeinit_PullSoA | |
72 | }, | |
73 | { | |
74 | .Name = "list-pull-split-nt-2s-soa", | |
75 | .Init = D3Q19ListPullSplitNt2SInit_PullSoA, | |
76 | .Deinit = D3Q19ListPullSplitNtDeinit_PullSoA | |
77 | }, | |
78 | { | |
79 | .Name = "list-push-soa", | |
80 | .Init = D3Q19ListInit_PushSoA, | |
81 | .Deinit = D3Q19ListDeinit_PushSoA | |
82 | }, | |
83 | { | |
84 | .Name = "list-push-aos", | |
85 | .Init = D3Q19ListInit_PushAoS, | |
86 | .Deinit = D3Q19ListDeinit_PushAoS | |
87 | }, | |
88 | { | |
89 | .Name = "list-pull-soa", | |
90 | .Init = D3Q19ListInit_PullSoA, | |
91 | .Deinit = D3Q19ListDeinit_PullSoA | |
92 | }, | |
93 | { | |
94 | .Name = "list-pull-aos", | |
95 | .Init = D3Q19ListInit_PullAoS, | |
96 | .Deinit = D3Q19ListDeinit_PullAoS | |
97 | }, | |
98 | { | |
99 | .Name = "push-soa", | |
100 | .Init = D3Q19Init_PushSoA, | |
101 | .Deinit = D3Q19Deinit_PushSoA | |
102 | }, | |
103 | { | |
104 | .Name = "push-aos", | |
105 | .Init = D3Q19Init_PushAoS, | |
106 | .Deinit = D3Q19Deinit_PushAoS | |
107 | }, | |
108 | { | |
109 | .Name = "pull-soa", | |
110 | .Init = D3Q19Init_PullSoA, | |
111 | .Deinit = D3Q19Deinit_PullSoA | |
112 | }, | |
113 | { | |
114 | .Name = "pull-aos", | |
115 | .Init = D3Q19Init_PullAoS, | |
116 | .Deinit = D3Q19Deinit_PullAoS | |
117 | }, | |
118 | { | |
119 | .Name = "blk-push-soa", | |
120 | .Init = D3Q19BlkInit_PushSoA, | |
121 | .Deinit = D3Q19BlkDeinit_PushSoA | |
122 | }, | |
123 | { | |
124 | .Name = "blk-push-aos", | |
125 | .Init = D3Q19BlkInit_PushAoS, | |
126 | .Deinit = D3Q19BlkDeinit_PushAoS | |
127 | }, | |
128 | { | |
129 | .Name = "blk-pull-soa", | |
130 | .Init = D3Q19BlkInit_PullSoA, | |
131 | .Deinit = D3Q19BlkDeinit_PullSoA | |
132 | }, | |
133 | { | |
134 | .Name = "blk-pull-aos", | |
135 | .Init = D3Q19BlkInit_PullAoS, | |
136 | .Deinit = D3Q19BlkDeinit_PullAoS | |
137 | }, | |
e3f82424 MW |
138 | { |
139 | .Name = "aa-aos", | |
140 | .Init = D3Q19AaInit_AaAoS, | |
141 | .Deinit = D3Q19AaDeinit_AaAoS | |
142 | }, | |
143 | { | |
144 | .Name = "aa-soa", | |
145 | .Init = D3Q19AaInit_AaSoA, | |
146 | .Deinit = D3Q19AaDeinit_AaSoA | |
147 | }, | |
148 | { | |
149 | .Name = "aa-vec-soa", | |
150 | .Init = D3Q19AaVecInit_AaSoA, | |
151 | .Deinit = D3Q19AaVecDeinit_AaSoA | |
152 | } | |
153 | ||
10988083 MW |
154 | }; |
155 | ||
156 | #endif // __KERNEL_FUNCTIONS_H__ |