SWDEV-1 - Add missing checks in MemUtils.hh
[ROCm/hip-tests commit: a152a895b6]
Cette révision appartient à :
@@ -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) {
|
template <typename T> static inline void freeStuff(T* aPtr, allocType type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case allocType::deviceMalloc:
|
case allocType::deviceMalloc:
|
||||||
hipFree(aPtr);
|
HIP_CHECK(hipFree(aPtr));
|
||||||
break;
|
break;
|
||||||
case allocType::hostMalloc:
|
case allocType::hostMalloc:
|
||||||
hipHostFree(aPtr);
|
HIP_CHECK(hipHostFree(aPtr));
|
||||||
break;
|
break;
|
||||||
default: // for host and device registered
|
default: // for host and device registered
|
||||||
HIP_CHECK(hipHostUnregister(aPtr));
|
HIP_CHECK(hipHostUnregister(aPtr));
|
||||||
|
|||||||
Référencer dans un nouveau ticket
Bloquer un utilisateur