kfdtest: Skip KFDEvictTest, KDFSVMEvictTest, HMMProfilingEvent on small APU
Small APUs use same memory allocation approach with APP APU now, skip these tests as well. Change-Id: I13c953cc53da071f6f36af0d4a0153a48ea066fe Signed-off-by: Lang Yu <Lang.Yu@amd.com> Signed-off-by: Chris Freehill <cfreehil@amd.com>
This commit is contained in:
@@ -314,13 +314,15 @@ TEST_F(KFDEvictTest, BasicTest) {
|
||||
HSAuint64 vramSize = GetVramSize(defaultGPUNode);
|
||||
HSAuint64 sysMemSize = GetSysMemSize();
|
||||
|
||||
const HsaNodeProperties *pNodeProperties = m_NodeInfo.HsaDefaultGPUNodeProperties();
|
||||
|
||||
if (!vramSize) {
|
||||
LOG() << "Skipping test: No VRAM found." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_NodeInfo.IsAppAPU(defaultGPUNode)) {
|
||||
LOG() << "Skipping test on AppAPU." << std::endl;
|
||||
if (pNodeProperties->Integrated) {
|
||||
LOG() << "Skipping test on APU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -398,8 +400,8 @@ TEST_F(KFDEvictTest, QueueTest) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_NodeInfo.IsAppAPU(defaultGPUNode)) {
|
||||
LOG() << "Skipping test on AppAPU." << std::endl;
|
||||
if (pNodeProperties->Integrated) {
|
||||
LOG() << "Skipping test on APU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -519,8 +521,10 @@ TEST_F(KFDEvictTest, BurstyTest) {
|
||||
ASSERT_GE(defaultGPUNode, 0) << "failed to get default GPU Node";
|
||||
HSAuint64 vramBufSize = ALLOCATE_BUF_SIZE_MB * 1024 * 1024;
|
||||
|
||||
if (m_NodeInfo.IsAppAPU(defaultGPUNode)) {
|
||||
LOG() << "Skipping test on AppAPU." << std::endl;
|
||||
const HsaNodeProperties *pNodeProperties = m_NodeInfo.HsaDefaultGPUNodeProperties();
|
||||
|
||||
if (pNodeProperties->Integrated) {
|
||||
LOG() << "Skipping test on APU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -240,8 +240,10 @@ TEST_P(KFDSVMEvictTest, BasicTest) {
|
||||
ASSERT_GE(defaultGPUNode, 0) << "failed to get default GPU Node";
|
||||
HSAuint64 vramBufSize = ALLOCATE_BUF_SIZE_MB * 1024 * 1024;
|
||||
|
||||
if (m_NodeInfo.IsAppAPU(defaultGPUNode)) {
|
||||
LOG() << "Skipping test on AppAPU." << std::endl;
|
||||
const HsaNodeProperties *pNodeProperties = m_NodeInfo.HsaDefaultGPUNodeProperties();
|
||||
|
||||
if (pNodeProperties->Integrated) {
|
||||
LOG() << "Skipping test on APU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -313,8 +315,8 @@ TEST_P(KFDSVMEvictTest, QueueTest) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_NodeInfo.IsAppAPU(defaultGPUNode)) {
|
||||
LOG() << "Skipping test on AppAPU." << std::endl;
|
||||
if (pNodeProperties->Integrated) {
|
||||
LOG() << "Skipping test on APU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1461,13 +1461,15 @@ TEST_P(KFDSVMRangeTest, HMMProfilingEvent) {
|
||||
int defaultGPUNode = m_NodeInfo.HsaDefaultGPUNode();
|
||||
ASSERT_GE(defaultGPUNode, 0) << "failed to get default GPU Node";
|
||||
|
||||
if (!GetVramSize(defaultGPUNode)) {
|
||||
LOG() << "Skipping test: No VRAM found." << std::endl;
|
||||
const HsaNodeProperties *pNodeProperties = m_NodeInfo.HsaDefaultGPUNodeProperties();
|
||||
|
||||
if (pNodeProperties->Integrated) {
|
||||
LOG() << "Skipping test on APU." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_NodeInfo.IsAppAPU(defaultGPUNode)) {
|
||||
LOG() << "Skipping test on AppAPU." << std::endl;
|
||||
if (!GetVramSize(defaultGPUNode)) {
|
||||
LOG() << "Skipping test: No VRAM found." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user