SWDEV-392367 - Fixes hipMemGetAddressRange returning device buffer size as 0

Change-Id: I6b5640b544390b2dfc53fad271acc7f30240e274


[ROCm/clr commit: 7aba1cf4cd]
Ta zmiana jest zawarta w:
Sourabh Betigeri authored and Sourabh Betigeri committed 2023-04-25 13:46:52 -04:00
1 rodzic 6b364523bd
złożenie 898340aaa9
Plik 1 zmieniony
+2 -1
+2 -1
Wyświetl plik
@@ -730,7 +730,8 @@ hipError_t hipMemGetAddressRange(hipDeviceptr_t* pbase, size_t* psize, hipDevice
// Since we are using SVM buffer DevicePtr and HostPtr is the same
void* ptr = dptr;
amd::Memory* svmMem = getMemoryObjectWithOffset(ptr);
size_t offset = 0;
amd::Memory* svmMem = getMemoryObject(ptr, offset);
if (svmMem == nullptr) {
HIP_RETURN(hipErrorNotFound);
}