Skip to content

Commit 9da8270

Browse files
authored
Fix Wrong Index in Docs
1 parent b09d7ed commit 9da8270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/docs/source/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ First, we define a string containing the CUDA C++ kernel. Note that this is a te
4747
size_t N) {
4848
const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x;
4949
for (size_t i=tid; i<N; i+=gridDim.x*blockDim.x) {
50-
C[tid] = A[tid] + B[tid];
50+
C[i] = A[i] + B[i];
5151
}
5252
}
5353
"""

0 commit comments

Comments
 (0)