From 3ecd54f0984349d38a29771d1932721c15d06bbb Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Fri, 18 Mar 2022 16:08:59 -0400 Subject: [PATCH] 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 Change-Id: I2950237347fc2f764f6aa3292ab819051472bf37 --- tests/kfdtest/src/KFDMemoryTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/kfdtest/src/KFDMemoryTest.cpp b/tests/kfdtest/src/KFDMemoryTest.cpp index f7ac73f1c2..31f199f79f 100644 --- a/tests/kfdtest/src/KFDMemoryTest.cpp +++ b/tests/kfdtest/src/KFDMemoryTest.cpp @@ -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);