projects
/
LbmBenchmarkKernelsPublic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge with kernels from MH's master thesis
[LbmBenchmarkKernelsPublic.git]
/
src
/
BenchKernelD3Q19Aa.c
diff --git
a/src/BenchKernelD3Q19Aa.c
b/src/BenchKernelD3Q19Aa.c
index a6f73fc99715422d8ca40900c417cc9b3fa2fece..b8ee577c84956d132d50f7e92547d7e476660a54 100644
(file)
--- a/
src/BenchKernelD3Q19Aa.c
+++ b/
src/BenchKernelD3Q19Aa.c
@@
-118,6
+118,8
@@
void FNAME(D3Q19AaKernel)(LatticeDesc * ld, KernelData * kernelData, CaseData *
nThreads = omp_get_max_threads();
#endif
nThreads = omp_get_max_threads();
#endif
+ X_KERNEL_START(kernelData);
+
for (int iter = 0; iter < maxIterations; iter += 2) {
// --------------------------------------------------------------------
for (int iter = 0; iter < maxIterations; iter += 2) {
// --------------------------------------------------------------------
@@
-174,7
+176,7
@@
void FNAME(D3Q19AaKernel)(LatticeDesc * ld, KernelData * kernelData, CaseData *
#pragma vector always
#pragma simd
#endif
#pragma vector always
#pragma simd
#endif
- for (int z = bZ; z < eZ; ++z) {
+ for (int z = bZ; z < eZ; ++z) {
// LOOP aa-even
if (ld->Lattice[L_INDEX_4(ld->Dims, x - oX, y - oY, z - oZ)] == LAT_CELL_OBSTACLE) {
if (ld->Lattice[L_INDEX_4(ld->Dims, x - oX, y - oY, z - oZ)] == LAT_CELL_OBSTACLE) {
@@
-382,7
+384,7
@@
void FNAME(D3Q19AaKernel)(LatticeDesc * ld, KernelData * kernelData, CaseData *
#pragma vector always
#pragma simd
#endif
#pragma vector always
#pragma simd
#endif
- for (int z = bZ; z < eZ; ++z) {
+ for (int z = bZ; z < eZ; ++z) {
// LOOP aa-odd
#define I(x, y, z, dir) P_INDEX_5(gDims, (x), (y), (z), (dir))
#define I(x, y, z, dir) P_INDEX_5(gDims, (x), (y), (z), (dir))
@@
-531,6
+533,8
@@
void FNAME(D3Q19AaKernel)(LatticeDesc * ld, KernelData * kernelData, CaseData *
} // for (int iter = 0; ...
} // for (int iter = 0; ...
+ X_KERNEL_END(kernelData);
+
#ifdef VTK_OUTPUT
if (cd->VtkOutput) {
#ifdef VTK_OUTPUT
if (cd->VtkOutput) {
This page took
0.045281 seconds
and
5
git commands to generate.