Fix clang-tidy warnings in the OpenCL build
[alexxy/gromacs.git] / src / gromacs / ewald / pme_gpu_program_impl_ocl.cpp
index a3558005608581aa08af5fc05eaa6b57aa517ea2..492128ed3eeaa9e90d852893ff6cc0dbf50367db 100644 (file)
@@ -110,7 +110,7 @@ PmeGpuProgramImpl::~PmeGpuProgramImpl()
  * smaller than the minimum order^2 required in spread/gather ATM which
  * we need to check for.
  */
-static void checkRequiredWarpSize(const cl_kernel          kernel,
+static void checkRequiredWarpSize(cl_kernel                kernel,
                                   const char*              kernelName,
                                   const gmx_device_info_t *deviceInfo)
 {
@@ -164,8 +164,8 @@ void PmeGpuProgramImpl::compileKernels(const gmx_device_info_t *deviceInfo)
                     warpSize / c_pmeSpreadGatherThreadsPerAtom,
                     c_pmeSpreadGatherThreadsPerAtom,
                     static_cast<float>(c_pmeMaxUnitcellShift),
-                    c_usePadding,
-                    c_skipNeutralAtoms,
+                    static_cast<int>(c_usePadding),
+                    static_cast<int>(c_skipNeutralAtoms),
                     c_virialAndEnergyCount,
                     spreadWorkGroupSize,
                     solveMaxWorkGroupSize,