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 73ca897 commit 9511954Copy full SHA for 9511954
1 file changed
series/cuda-cpp/overlap-data-transfers/async.cu
@@ -41,7 +41,7 @@ float maxError(float *a, int n)
41
{
42
float maxE = 0;
43
for (int i = 0; i < n; i++) {
44
- float error = abs(a[i]-1.0f);
+ float error = fabs(a[i]-1.0f);
45
if (error > maxE) maxE = error;
46
}
47
return maxE;
0 commit comments