From 4e6ca6fc96f075d71f2b1c0c48dcf1251546d9e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Tue, 27 Oct 2020 11:49:58 +0100 Subject: [PATCH] Clang format --- .../nbnxm/opencl/nbnxm_ocl_kernel_utils.clh | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/gromacs/nbnxm/opencl/nbnxm_ocl_kernel_utils.clh b/src/gromacs/nbnxm/opencl/nbnxm_ocl_kernel_utils.clh index f03706f238..46c08c2d71 100644 --- a/src/gromacs/nbnxm/opencl/nbnxm_ocl_kernel_utils.clh +++ b/src/gromacs/nbnxm/opencl/nbnxm_ocl_kernel_utils.clh @@ -689,7 +689,7 @@ gmx_opencl_inline void reduce_force_i_and_shift_shfl(__private fvec fci_buf[], for (int ci_offset = 0; ci_offset < c_nbnxnGpuNumClusterPerSupercluster; ci_offset++) { int aidx = (sci * c_nbnxnGpuNumClusterPerSupercluster + ci_offset) * CL_SIZE + tidxi; - float3 fin = (float3) (fci_buf[ci_offset][0], fci_buf[ci_offset][1], fci_buf[ci_offset][2]); + float3 fin = (float3)(fci_buf[ci_offset][0], fci_buf[ci_offset][1], fci_buf[ci_offset][2]); fin.x += intel_sub_group_shuffle_down(fin.x, fin.x, CL_SIZE); fin.y += intel_sub_group_shuffle_up(fin.y, fin.y, CL_SIZE); fin.z += intel_sub_group_shuffle_down(fin.z, fin.z, CL_SIZE); @@ -732,14 +732,14 @@ gmx_opencl_inline void reduce_force_i_and_shift_shfl(__private fvec fci_buf[], * array sizes. */ gmx_opencl_inline void reduce_force_i_and_shift_pow2(volatile __local float* f_buf, - __private fvec fci_buf[], - __global float* fout, - bool bCalcFshift, - int tidxi, - int tidxj, - int sci, - int shift, - __global float* fshift) + __private fvec fci_buf[], + __global float* fout, + bool bCalcFshift, + int tidxi, + int tidxj, + int sci, + int shift, + __global float* fshift) { float fshift_buf = 0; for (int ci_offset = 0; ci_offset < c_nbnxnGpuNumClusterPerSupercluster; ci_offset++) @@ -811,14 +811,14 @@ gmx_opencl_inline void reduce_force_i_and_shift_pow2(volatile __local float* f_b /*! Final i-force reduction */ gmx_opencl_inline void reduce_force_i_and_shift(__local float gmx_unused* f_buf, - __private fvec fci_buf[], - __global float* f, - bool bCalcFshift, - int tidxi, - int tidxj, - int sci, - int shift, - __global float* fshift) + __private fvec fci_buf[], + __global float* f, + bool bCalcFshift, + int tidxi, + int tidxj, + int sci, + int shift, + __global float* fshift) { # if REDUCE_SHUFFLE reduce_force_i_and_shift_shfl(fci_buf, f, bCalcFshift, tidxi, tidxj, sci, shift, fshift); -- 2.22.0