kfdtest: add SVM tests

KFD changes are ready, all SVM tests should pass now. Skip SVM tests if
the SVM API is not supported.

Change-Id: I5e358565a0458eea45eae0aaf4969ce3a36574a7
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Sierra <Alex.Sierra@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
This commit is contained in:
Felix Kuehling
2021-03-19 16:10:16 -04:00
parent e8f369b385
commit e8990cf830
8 changed files with 1937 additions and 2 deletions
@@ -78,6 +78,14 @@ class KFDBaseComponentTest : public testing::Test {
virtual void SetUp();
// @brief Executed after every test that uses KFDBaseComponentTest class.
virtual void TearDown();
bool SVMAPISupported() {
bool supported = m_NodeInfo.HsaDefaultGPUNodeProperties()
->Capability.ui32.SVMAPISupported;
if (!supported)
LOG() << "SVM API not supported" << std::endl;
return supported;
}
};
extern KFDBaseComponentTest* g_baseTest;