Memset to fix inflated performance when GPU is reset (#94)
* Memset to fix inflated performance when GPU is reset
* use hipMemset for both memsets
[ROCm/rccl-tests commit: f2a48983ae]
This commit is contained in:
gecommit door
nileshnegi
bovenliggende
7ecf5d7fda
commit
7fbad10633
@@ -904,6 +904,8 @@ testResult_t AllocateBuffs(void **sendbuff, size_t sendBytes, void **recvbuff, s
|
||||
CUDACHECK(cudaMalloc(recvbuff, nbytes));
|
||||
if (datacheck) CUDACHECK(cudaMalloc(expected, recvBytes));
|
||||
}
|
||||
CUDACHECK(hipMemset(*sendbuff, 1, nbytes));
|
||||
if (datacheck) CUDACHECK(hipMemset(*expected, 1, recvBytes));
|
||||
return testSuccess;
|
||||
}
|
||||
|
||||
|
||||
Verwijs in nieuw issue
Block a user