mirror of
https://github.com/NVIDIA/nccl-tests.git
synced 2026-05-01 11:58:19 +08:00
Call cudaFreeHost() on wrongPerGpu not cudaFree()
This commit is contained in:
parent
3bd2bd292b
commit
24fcf64ed1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user