1 // --------------------------------------------------------------------------
4 // Markus Wittmann, 2016-2017
5 // RRZE, University of Erlangen-Nuremberg, Germany
6 // markus.wittmann -at- fau.de or hpc -at- rrze.fau.de
9 // LSS, University of Erlangen-Nuremberg, Germany
11 // This file is part of the Lattice Boltzmann Benchmark Kernels (LbmBenchKernels).
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.
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.
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/>.
26 // --------------------------------------------------------------------------
27 #ifndef __KERNEL_FUNCTIONS_H__
28 #define __KERNEL_FUNCTIONS_H__
30 #include "BenchKernelD3Q19.h"
31 #include "BenchKernelD3Q19Aa.h"
32 #include "BenchKernelD3Q19AaVec.h"
33 #include "BenchKernelD3Q19List.h"
34 #include "BenchKernelD3Q19ListAa.h"
35 #include "BenchKernelD3Q19ListAaRia.h"
36 #include "BenchKernelD3Q19ListAaPv.h"
37 #include "BenchKernelD3Q19ListPullSplitNt.h"
39 typedef struct KernelFunctions_
42 void (* Init)(LatticeDesc * ld, KernelData ** kernelData, Parameters * params);
43 void (* Deinit)(LatticeDesc * ld, KernelData ** kernelData);
46 KernelFunctions g_kernels[] =
49 .Name = "list-aa-pv-soa",
50 .Init = D3Q19ListAaPvInit_PushSoA,
51 .Deinit = D3Q19ListAaPvDeinit_PushSoA
54 .Name = "list-aa-ria-soa",
55 .Init = D3Q19ListAaRiaInit_PushSoA,
56 .Deinit = D3Q19ListAaRiaDeinit_PushSoA
59 .Name = "list-aa-soa",
60 .Init = D3Q19ListAaInit_PushSoA,
61 .Deinit = D3Q19ListAaDeinit_PushSoA
64 .Name = "list-aa-aos",
65 .Init = D3Q19ListAaInit_PushAoS,
66 .Deinit = D3Q19ListAaDeinit_PushAoS
69 .Name = "list-pull-split-nt-1s-soa",
70 .Init = D3Q19ListPullSplitNt1SInit_PullSoA,
71 .Deinit = D3Q19ListPullSplitNtDeinit_PullSoA
74 .Name = "list-pull-split-nt-2s-soa",
75 .Init = D3Q19ListPullSplitNt2SInit_PullSoA,
76 .Deinit = D3Q19ListPullSplitNtDeinit_PullSoA
79 .Name = "list-push-soa",
80 .Init = D3Q19ListInit_PushSoA,
81 .Deinit = D3Q19ListDeinit_PushSoA
84 .Name = "list-push-aos",
85 .Init = D3Q19ListInit_PushAoS,
86 .Deinit = D3Q19ListDeinit_PushAoS
89 .Name = "list-pull-soa",
90 .Init = D3Q19ListInit_PullSoA,
91 .Deinit = D3Q19ListDeinit_PullSoA
94 .Name = "list-pull-aos",
95 .Init = D3Q19ListInit_PullAoS,
96 .Deinit = D3Q19ListDeinit_PullAoS
100 .Init = D3Q19Init_PushSoA,
101 .Deinit = D3Q19Deinit_PushSoA
105 .Init = D3Q19Init_PushAoS,
106 .Deinit = D3Q19Deinit_PushAoS
110 .Init = D3Q19Init_PullSoA,
111 .Deinit = D3Q19Deinit_PullSoA
115 .Init = D3Q19Init_PullAoS,
116 .Deinit = D3Q19Deinit_PullAoS
119 .Name = "blk-push-soa",
120 .Init = D3Q19BlkInit_PushSoA,
121 .Deinit = D3Q19BlkDeinit_PushSoA
124 .Name = "blk-push-aos",
125 .Init = D3Q19BlkInit_PushAoS,
126 .Deinit = D3Q19BlkDeinit_PushAoS
129 .Name = "blk-pull-soa",
130 .Init = D3Q19BlkInit_PullSoA,
131 .Deinit = D3Q19BlkDeinit_PullSoA
134 .Name = "blk-pull-aos",
135 .Init = D3Q19BlkInit_PullAoS,
136 .Deinit = D3Q19BlkDeinit_PullAoS
140 .Init = D3Q19AaInit_AaAoS,
141 .Deinit = D3Q19AaDeinit_AaAoS
145 .Init = D3Q19AaInit_AaSoA,
146 .Deinit = D3Q19AaDeinit_AaSoA
149 .Name = "aa-vec-soa",
150 .Init = D3Q19AaVecInit_AaSoA,
151 .Deinit = D3Q19AaVecDeinit_AaSoA
156 #endif // __KERNEL_FUNCTIONS_H__