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
[ROCm/ROCR-Runtime commit: 3ecd54f098]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user