SWDEV-1 - Add missing checks in MemUtils.hh
Dieser Commit ist enthalten in:
1 Ursprung
7fc4b7d6f4
Commit
47df29a9d0
1 Datei geändert
+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));
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren