From e42c23b3dd510e3156d94c18f1eb0561be2fe683 Mon Sep 17 00:00:00 2001 From: Riccardo De Maria Date: Fri, 27 Oct 2023 20:14:04 +0200 Subject: [PATCH] remove blanks --- tests/test_shared_memory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_shared_memory.py b/tests/test_shared_memory.py index cf077c1..1dabc39 100644 --- a/tests/test_shared_memory.py +++ b/tests/test_shared_memory.py @@ -44,10 +44,10 @@ class TestElement(xo.HybridClass): // reduction with an array of 4 doubles using 2 blocks each 2 threads // use reduction with interleaved addressing: https://developer.download.nvidia.com/assets/cuda/files/reduction.pdf // all threads within a block have access to shared memory - + unsigned int tid = threadIdx.x; // thread ID within the block: 0,1 unsigned int gid = blockIdx.x*blockDim.x + threadIdx.x; // global thread ID: 0,1,2,3 - + // init shared memory with chunk of input array extern __shared__ double sdata[2]; sdata[tid] = input_arr[gid];