From de8880d96a044308895e89cee820d81da901a5de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Thu, 12 Oct 2017 17:52:15 +0200 Subject: [PATCH] Remove the size_t from the PME gather CUDA kenels Change-Id: If53b9eabc1ac081b33933cc773b5ea932c9e8392 --- src/gromacs/ewald/pme-gather.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gromacs/ewald/pme-gather.cu b/src/gromacs/ewald/pme-gather.cu index 7df1a66faa..18346d6f97 100644 --- a/src/gromacs/ewald/pme-gather.cu +++ b/src/gromacs/ewald/pme-gather.cu @@ -383,9 +383,9 @@ __global__ void pme_gather_kernel(const pme_gpu_cuda_kernel_params_t kernelPa assert(atomsPerBlock <= warp_size); /* Writing or adding the final forces component-wise, single warp */ - const size_t blockForcesSize = atomsPerBlock * DIM; - const int numIter = (blockForcesSize + warp_size - 1) / warp_size; - const int iterThreads = blockForcesSize / numIter; + const int blockForcesSize = atomsPerBlock * DIM; + const int numIter = (blockForcesSize + warp_size - 1) / warp_size; + const int iterThreads = blockForcesSize / numIter; if (threadLocalId < iterThreads) { #pragma unroll -- 2.11.4.GIT