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.
1 parent a7953f1 commit e571f94Copy full SHA for e571f94
1 file changed
series/cuda-cpp/coalescing-global/coalescing.cu
@@ -51,7 +51,7 @@ void runTest(int deviceId, int nMB)
51
offset<<<n/blockSize, blockSize>>>(d_a, 0); // warm up
52
53
for (int i = 0; i <= 32; i++) {
54
- checkCuda( cudaMemset(d_a, 0.0, n * sizeof(T)) );
+ checkCuda( cudaMemset(d_a, 0, n * sizeof(T)) );
55
56
checkCuda( cudaEventRecord(startEvent,0) );
57
offset<<<n/blockSize, blockSize>>>(d_a, i);
@@ -67,7 +67,7 @@ void runTest(int deviceId, int nMB)
67
68
stride<<<n/blockSize, blockSize>>>(d_a, 1); // warm up
69
for (int i = 1; i <= 32; i++) {
70
71
72
73
stride<<<n/blockSize, blockSize>>>(d_a, i);
@@ -108,4 +108,4 @@ int main(int argc, char **argv)
108
109
if (bFp64) runTest<double>(deviceId, nMB);
110
else runTest<float>(deviceId, nMB);
111
-}
+}
0 commit comments