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

Change-Id: I6b5640b544390b2dfc53fad271acc7f30240e274


[ROCm/clr commit: 7aba1cf4cd]
Tá an tiomantas seo le fáil i:
Sourabh Betigeri údaraithe agus Sourabh Betigeri tiomanta 2023-04-25 13:46:52 -04:00
1 tuismitheoir 6b364523bd
tiomantas 898340aaa9
1 comhad athraithe
+2 -1
+2 -1
Féach ar an gComhad
@@ -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);
}