Call cudaFreeHost() on wrongPerGpu not cudaFree()

Dieser Commit ist enthalten in:
David Addison committed 2022-11-22 11:18:37 -08:00
1 Ursprung 3bd2bd292b
Commit 24fcf64ed1
1 Datei geändert
+1 -1
+1 -1
Datei anzeigen
@@ -262,7 +262,7 @@ testResult_t CheckData(struct threadArgs* args, ncclDataType_t type, ncclRedOp_t
*wrongElts = 0;
for (int i=0; i < args->nGpus; i++) *wrongElts += wrongPerGpu[i];
cudaFree(wrongPerGpu);
cudaFreeHost(wrongPerGpu);
if (args->reportErrors && *wrongElts) args->errors[0]++;
return testSuccess;