SWDEV-468133 - Fixed hipDeviceGetLimit for hipLimitMallocHeapSize

Change-Id: I91bede414ebe46831509cbd24ffb53cf129d6a40
This commit is contained in:
Ioannis Assiouras
2024-06-17 10:37:14 +01:00
rodzic 36d58c6518
commit 2aed4cf401
+1 -3
Wyświetl plik
@@ -514,9 +514,7 @@ hipError_t hipDeviceGetLimit(size_t* pValue, hipLimit_t limit) {
switch (limit) {
case hipLimitMallocHeapSize:
hipDeviceProp_tR0600 prop;
HIP_RETURN_ONFAIL(ihipGetDeviceProperties(&prop, ihipGetDevice()));
*pValue = prop.totalGlobalMem;
*pValue = hip::getCurrentDevice()->devices()[0]->InitialHeapSize();
break;
case hipLimitStackSize:
*pValue = hip::getCurrentDevice()->devices()[0]->StackSize();