SWDEV-344211 - Fix hipHostMalloc tests (#2823)

- Increase allocation size to 30MB to make sure new page table allocations happen
- Change validation criteria to check for increase in VRAM usage for visible HIP devices

Change-Id: Ie5bf1a89ceda0ff50140f426235047adcca0fdea
此提交包含在:
ROCm CI Service Account
2022-07-26 11:46:32 +05:30
提交者 GitHub
父節點 e68136227a
當前提交 c5d856348e
共有 2 個檔案被更改,包括 12 行新增 和 4 行删除
+6 -2
查看文件
@@ -61,7 +61,7 @@ Testcase Scenarios :
*/
#define LIB_ROCMSMI "librocm_smi64.so"
#define NUM_BYTES 1000
#define ALLOC_SIZE (1*1024*1024)
#define ALLOC_SIZE (30*1024*1024)
/**
@@ -246,7 +246,11 @@ bool validatePageTableAllocations(const char *devList, int devCnt) {
}
for (indx = 0; indx < numdev; indx++) {
if (current[indx] - prev[indx])
// For visible hip devices, there should be increase in VRAM usage
// due to page table allocations
// For NON visible hip devices, there can be reduction in VRAM usage
// due to removal of page tables from them
if (current[indx] > prev[indx])
changeCnt++;
}