From 9121a1eef083c618d5476daa3e4694e282b5b60e Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 4 Nov 2019 16:42:31 -0500 Subject: [PATCH] P4 to Git Change 2024544 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/04 16:35:14 SWDEV-145570 - [HIP] Fetched properties from current device and not default 0 one. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#21 edit [ROCm/clr commit: cbbe0e78cfbf8887837ee1a43c66b518842c7479] --- projects/clr/hipamd/api/hip/hip_device_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/api/hip/hip_device_runtime.cpp b/projects/clr/hipamd/api/hip/hip_device_runtime.cpp index 636ec612c1..e0bed1742c 100644 --- a/projects/clr/hipamd/api/hip/hip_device_runtime.cpp +++ b/projects/clr/hipamd/api/hip/hip_device_runtime.cpp @@ -339,7 +339,7 @@ hipError_t hipDeviceGetLimit ( size_t* pValue, hipLimit_t limit ) { } if(limit == hipLimitMallocHeapSize) { hipDeviceProp_t prop; - hipGetDeviceProperties(&prop, 0); + hipGetDeviceProperties(&prop, ihipGetDevice()); *pValue = prop.totalGlobalMem; HIP_RETURN(hipSuccess);