X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=LbmBenchmarkKernelsPublic.git;a=blobdiff_plain;f=src%2FBenchKernelD3Q19ListPullSplitNtCommon.c;h=e06d7fac1ec4c0379d0ed90fb3081dfd51bea0b6;hp=8c8da885578c21b5b6883619536464e993f7f8c9;hb=9e0051cb083e4d8575cbd9f4a41d11552358e151;hpb=8cafd9ea08a6b1103eab29811227a7ae536dffa6 diff --git a/src/BenchKernelD3Q19ListPullSplitNtCommon.c b/src/BenchKernelD3Q19ListPullSplitNtCommon.c index 8c8da88..e06d7fa 100644 --- a/src/BenchKernelD3Q19ListPullSplitNtCommon.c +++ b/src/BenchKernelD3Q19ListPullSplitNtCommon.c @@ -195,7 +195,7 @@ static void ParseParameters(Parameters * params, int * blk, int * nTmpArray, Pad Assert(blk != NULL); blk[0] = 0; blk[1] = 0; blk[2] = 0; - *nTmpArray = 152; + *nTmpArray = 152 - (152 % VSIZE); *padInfo = NULL; #define ARG_IS(param) (!strcmp(params->KernelArgs[i], param)) @@ -491,7 +491,9 @@ static void FNAME(Init)(LatticeDesc * ld, KernelData ** kernelData, Parameters * } // We padd each stream of a PDF array for a complete cache line. - nCells = nCells + (8 - nCells % 8); + int nElementsPerCl = 64 / sizeof(PdfT); + + nCells = nCells + (nElementsPerCl - nCells % nElementsPerCl); Assert(nCells % VSIZE == 0);