SWDEV-411064 - fix device mem size to accurately match memory size from same device
Change-Id: I9caee84c58312053a7b387c8516b386d53c2197f
[ROCm/hip-tests commit: c340f47ac1]
This commit is contained in:
gecommit door
Rakesh Roy
bovenliggende
cb193f70c4
commit
668bcece7a
@@ -95,6 +95,7 @@ TEST_CASE("Unit_hipDeviceTotalMem_ValidateTotalMem") {
|
|||||||
HIP_CHECK(hipDeviceTotalMem(&totMem, device));
|
HIP_CHECK(hipDeviceTotalMem(&totMem, device));
|
||||||
|
|
||||||
size_t free = 0, total = 0;
|
size_t free = 0, total = 0;
|
||||||
|
HIP_CHECK(hipSetDevice(devNo));
|
||||||
HIP_CHECK(hipMemGetInfo(&free, &total));
|
HIP_CHECK(hipMemGetInfo(&free, &total));
|
||||||
|
|
||||||
REQUIRE(totMem == prop.totalGlobalMem);
|
REQUIRE(totMem == prop.totalGlobalMem);
|
||||||
|
|||||||
Verwijs in nieuw issue
Block a user