kfdtest: limit GFX VRAM allocation to 1/4 sys mem

reduce the allocated memory for GFX VRAM as
KFD Evict test faced intermittent page faults,
which can be due to larger GFX CS BO size


[ROCm/ROCR-Runtime commit: 85c4b0020a]
Cette révision appartient à :
Apurv Mishra
2025-03-05 14:02:13 -05:00
révisé par Mishra, Apurv
Parent 566269e8b7
révision 1e279a19c3
+4 -4
Voir le fichier
@@ -352,8 +352,8 @@ TEST_F(KFDEvictTest, BasicTest) {
std::vector<void *> pBuffers;
AllocBuffers(m_IsParent[gpuIndex], defaultGPUNode, count, vramBufSize, pBuffers);
/* Allocate gfx vram size of at most one third system memory */
HSAuint64 size = sysMemSize / 3 < testSize / 2 ? sysMemSize / 3 : testSize / 2;
/* Allocate gfx vram size of at most one-fourth system memory */
HSAuint64 size = sysMemSize / 4 < testSize / 3 ? sysMemSize / 4 : testSize / 3;
amdgpu_bo_handle handle;
AllocAmdgpuBo(m_IsParent[gpuIndex], rn, size, handle);
@@ -457,8 +457,8 @@ TEST_F(KFDEvictTest, QueueTest) {
std::vector<void *> pBuffers;
AllocBuffers(m_IsParent[gpuIndex], defaultGPUNode, count, vramBufSize, pBuffers);
/* Allocate gfx vram size of at most one third system memory */
HSAuint64 size = sysMemSize / 3 < testSize / 2 ? sysMemSize / 3 : testSize / 2;
/* Allocate gfx vram size of at most one-fourth system memory */
HSAuint64 size = sysMemSize / 4 < testSize / 3 ? sysMemSize / 4 : testSize / 3;
amdgpu_bo_handle handle;
AllocAmdgpuBo(m_IsParent[gpuIndex], rn, size, handle);