SWDEV-1 - Add missing checks in hipMemsetSync.cc

[ROCm/hip-tests commit: f165e42933]
This commit is contained in:
Maneesh Gupta
2022-10-11 12:00:23 +05:30
committed by GitHub
parent 20d2e730ae
commit bd79a6da38
@@ -379,10 +379,10 @@ void memsetCheck(T* aPtr, size_t value, memSetType memsetType, MultiDData& data,
template <typename T> void freeStuff(T* aPtr, allocType type) {
switch (type) {
case allocType::deviceMalloc:
hipFree(aPtr);
HIP_CHECK(hipFree(aPtr));
break;
case allocType::hostMalloc:
hipHostFree(aPtr);
HIP_CHECK(hipHostFree(aPtr));
break;
case allocType::hostRegisted:
HIP_CHECK(hipHostUnregister(aPtr));