SWDEV-1 - Add missing checks in hipDrvMemcpy3D.cc
This commit is contained in:
@@ -501,8 +501,8 @@ void DrvMemcpy3D<T>::HostArray_DrvMemcpy3D(bool device_context_change) {
|
|||||||
/* DeAllocating the memory */
|
/* DeAllocating the memory */
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void DrvMemcpy3D<T>::DeAllocateMemory() {
|
void DrvMemcpy3D<T>::DeAllocateMemory() {
|
||||||
hipArrayDestroy(arr);
|
HIP_CHECK(hipArrayDestroy(arr));
|
||||||
hipArrayDestroy(arr1);
|
HIP_CHECK(hipArrayDestroy(arr1));
|
||||||
free(hData);
|
free(hData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user