Call cudaFreeHost() on wrongPerGpu not cudaFree()

[ROCm/rccl-tests commit: 24fcf64ed1]
This commit is contained in:
David Addison
2022-11-22 11:18:37 -08:00
parent 04b5c40b1c
commit 6313530fcc
+1 -1
Vedi File
@@ -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;