We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b09d7ed commit 9da8270Copy full SHA for 9da8270
cuda_core/docs/source/getting-started.rst
@@ -47,7 +47,7 @@ First, we define a string containing the CUDA C++ kernel. Note that this is a te
47
size_t N) {
48
const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x;
49
for (size_t i=tid; i<N; i+=gridDim.x*blockDim.x) {
50
- C[tid] = A[tid] + B[tid];
+ C[i] = A[i] + B[i];
51
}
52
53
"""
0 commit comments