Skip to content

Commit

Permalink
remove blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemaria committed Oct 27, 2023
1 parent d2e8e28 commit e42c23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_shared_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e42c23b

Please sign in to comment.