SWDEV-411064 - fix device mem size to accurately match memory size from same device

Change-Id: I9caee84c58312053a7b387c8516b386d53c2197f
此提交包含在:
Jatin Chaudhary authored and Rakesh Roy committed 2023-09-21 14:03:02 -04:00
1 父節點 ee3c94faf2
當前提交 c340f47ac1
1 file changed
+1
+1
查看文件
@@ -95,6 +95,7 @@ TEST_CASE("Unit_hipDeviceTotalMem_ValidateTotalMem") {
HIP_CHECK(hipDeviceTotalMem(&totMem, device));
size_t free = 0, total = 0;
HIP_CHECK(hipSetDevice(devNo));
HIP_CHECK(hipMemGetInfo(&free, &total));
REQUIRE(totMem == prop.totalGlobalMem);