We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bc93b0 + a3cd5ae commit 01ad808Copy full SHA for 01ad808
cuda_core/examples/saxpy.py
@@ -18,7 +18,7 @@
18
size_t N) {
19
const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x;
20
for (size_t i=tid; i<N; i+=gridDim.x*blockDim.x) {
21
- out[tid] = a * x[tid] + y[tid];
+ out[i] = a * x[i] + y[i];
22
}
23
24
"""
0 commit comments