SWDEV-1 - Add missing checks in MemUtils.hh

このコミットが含まれているのは:
Maneesh Gupta authored and GitHub committed 2022-10-11 11:58:41 +05:30
1 親 d3bf2019cf
コミット a152a895b6
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));