SWDEV-1 - Add missing checks in hipMemcpy3DAsync.cc

Этот коммит содержится в:
Maneesh Gupta authored and GitHub committed 2022-10-10 21:22:01 +05:30
1 родитель 4f5e85735b
Коммит 2f82bf3e36
1 file changed
+3 -3
+3 -3
Просмотреть файл
@@ -109,10 +109,10 @@ void Memcpy3DAsync<T>::AllocateMemory() {
*/
template <typename T>
void Memcpy3DAsync<T>::DeAllocateMemory() {
hipFreeArray(arr);
hipFreeArray(arr1);
HIP_CHECK(hipFreeArray(arr));
HIP_CHECK(hipFreeArray(arr1));
free(hData);
hipStreamDestroy(stream);
HIP_CHECK(hipStreamDestroy(stream));
}
/*