Memset to fix inflated performance when GPU is reset (#94)
* Memset to fix inflated performance when GPU is reset * use hipMemset for both memsets
This commit is contained in:
committed by
nileshnegi
parent
5c41a915c8
commit
f2a48983ae
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user