Skip to content

Commit 24fcf64

Browse files
committed
Call cudaFreeHost() on wrongPerGpu not cudaFree()
1 parent 3bd2bd2 commit 24fcf64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/common.cu‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ testResult_t CheckData(struct threadArgs* args, ncclDataType_t type, ncclRedOp_t
262262

263263
*wrongElts = 0;
264264
for (int i=0; i < args->nGpus; i++) *wrongElts += wrongPerGpu[i];
265-
cudaFree(wrongPerGpu);
265+
cudaFreeHost(wrongPerGpu);
266266

267267
if (args->reportErrors && *wrongElts) args->errors[0]++;
268268
return testSuccess;

0 commit comments

Comments
 (0)