You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example contains an error
for (int i = threadIdx.x + blockDim.x + blockIdx.x; i < size; i+=stride)
Should be
for (int i = threadIdx.x + blockDim.x * blockIdx.x; i < size; i+=stride)
The text was updated successfully, but these errors were encountered:
I looked at your example
https://github.com/tpn/cuda-samples/blob/master/v10.1/0_Simple/fp16ScalarProduct/fp16ScalarProduct.cu
The example contains an error
for (int i = threadIdx.x + blockDim.x + blockIdx.x; i < size; i+=stride)
Should be
for (int i = threadIdx.x + blockDim.x * blockIdx.x; i < size; i+=stride)
The text was updated successfully, but these errors were encountered: