SWDEV-1 - Add missing checks in MemUtils.hh

이 커밋은 다음에 포함됨:
Maneesh Gupta 작성하고 GitHub가 2022-10-11 11:58:41 +05:30를 커밋함
1 부모 7fc4b7d6f4
커밋 47df29a9d0
1 파일이 변경됨
+2 -2
+2 -2
파일 보기
@@ -344,10 +344,10 @@ static inline void memsetCheck(T* aPtr, size_t value, memType memType, MultiDDat
template <typename T> static inline 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;
default: // for host and device registered
HIP_CHECK(hipHostUnregister(aPtr));