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:
Mustafa Abduljabbar
2025-01-11 17:24:17 -05:00
committed by nileshnegi
parent 5c41a915c8
commit f2a48983ae
+2
View File
@@ -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;
}