Skip to content

Commit 01ad808

Browse files
authored
Merge branch 'main' into pytorch_example
2 parents 3bc93b0 + a3cd5ae commit 01ad808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/examples/saxpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
size_t N) {
1919
const unsigned int tid = threadIdx.x + blockIdx.x * blockDim.x;
2020
for (size_t i=tid; i<N; i+=gridDim.x*blockDim.x) {
21-
out[tid] = a * x[tid] + y[tid];
21+
out[i] = a * x[i] + y[i];
2222
}
2323
}
2424
"""

0 commit comments

Comments
 (0)