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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user