From 795d6e4420d880cd6f7ee134708e7caea5510766 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 21 Jan 2024 09:36:10 -0500 Subject: [PATCH] silence some more compiler warnings in CUDA code --- lib/gpu/lal_amoeba.cu | 6 +++--- lib/gpu/lal_hippo.cu | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/gpu/lal_amoeba.cu b/lib/gpu/lal_amoeba.cu index e7c313301e..a92509f06d 100644 --- a/lib/gpu/lal_amoeba.cu +++ b/lib/gpu/lal_amoeba.cu @@ -2033,13 +2033,13 @@ __kernel void k_amoeba_special15(__global int * dev_nbor, const __global tagint *restrict special15, const int inum, const int nall, const int nbor_pitch, const int t_per_atom) { - int tid, ii, offset, n_stride, i; + int tid, ii, offset, n_stride, j; atom_info(t_per_atom,ii,tid,offset); if (ii> SBBITS & 3; - int j = sj & NEIGHMASK; + j = sj & NEIGHMASK; tagint jtag = tag[j]; if (!which) { diff --git a/lib/gpu/lal_hippo.cu b/lib/gpu/lal_hippo.cu index 2555b83c9c..01ad8e753a 100644 --- a/lib/gpu/lal_hippo.cu +++ b/lib/gpu/lal_hippo.cu @@ -2456,13 +2456,13 @@ __kernel void k_hippo_special15(__global int * dev_nbor, const __global tagint *restrict special15, const int inum, const int nall, const int nbor_pitch, const int t_per_atom) { - int tid, ii, offset, n_stride, i; + int tid, ii, offset, n_stride, j; atom_info(t_per_atom,ii,tid,offset); if (ii> SBBITS & 3; - int j = sj & NEIGHMASK; + j = sj & NEIGHMASK; tagint jtag = tag[j]; if (!which) {