kfdtest: KFDMemoryTest.DeviceHdpFlush requires large bar
KFDMemoryTest.DeviceHdpFlush requires device node 0 is large bar to check VRAM content from CPU, run the test only if device 0 is large bar GPU. Change-Id: I874b153219550c50b724625e971e3ed3a84dc652 Signed-off-by: Philip Yang <Philip.Yang@amd.com>
This commit is contained in:
committed by
Graham Sider
parent
e32278a612
commit
598e3e8d86
@@ -1924,6 +1924,11 @@ TEST_F(KFDMemoryTest, DeviceHdpFlush) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_NodeInfo.IsGPUNodeLargeBar(nodes[0])) {
|
||||
LOG() << "Skipping test: Test requires device 0 large bar GPU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
HsaMemoryProperties *memoryProperties = new HsaMemoryProperties[pNodeProperties->NumMemoryBanks];
|
||||
EXPECT_SUCCESS(hsaKmtGetNodeMemoryProperties(nodes[0], pNodeProperties->NumMemoryBanks,
|
||||
memoryProperties));
|
||||
|
||||
Reference in New Issue
Block a user