kfdtest: Skip slow tests in MMBandWidth

Some VRAM access tests in MMBandWidth can be very slow on systems with
complicated PCIe topology. Skip tests that take a long time to avoid
excessively long running tests with little benefit.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: I2950237347fc2f764f6aa3292ab819051472bf37
This commit is contained in:
Felix Kuehling
2022-03-18 16:08:59 -04:00
parent 0d07b3477b
commit 3ecd54f098
+4
View File
@@ -2031,6 +2031,10 @@ TEST_F(KFDMemoryTest, MMBandWidth) {
RECORD(mcpWTime) << MMBANDWIDTH_KEY_PREFIX << "mcpWTime";
RECORD(accessRTime) << MMBANDWIDTH_KEY_PREFIX << "accessRTime";
RECORD(accessWTime) << MMBANDWIDTH_KEY_PREFIX << "accessWTime";
// skip slow tests
if (mcpRTime + mcpWTime + accessRTime + accessWTime > 5000000)
break;
}
munmap(tmp, tmpBufferSize);