kfdtest: skip KFDLocalMemoryTest.AccessLocalMem if not on dgpu path
It needs to skip LocalMemoryTest because it doesn't support local memory with no dgpu path. Change-Id: Iedb6f6deba55e239b21747d933cf2d7005623106 Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
This commit is contained in:
committato da
Felix Kuehling
parent
b8ef20e35c
commit
55cb03dbae
@@ -56,6 +56,12 @@ TEST_F(KFDLocalMemoryTest, AccessLocalMem) {
|
||||
int defaultGPUNode = m_NodeInfo.HsaDefaultGPUNode();
|
||||
ASSERT_GE(defaultGPUNode, 0) << "failed to get default GPU Node";
|
||||
|
||||
/* Skip test if not on dGPU path, which the test depends on */
|
||||
if (!is_dgpu()) {
|
||||
LOG() << "Not dGPU path, skipping the test" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
//local memory
|
||||
HsaMemoryBuffer destBuf(PAGE_SIZE, defaultGPUNode, false, true);
|
||||
HsaEvent *event;
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user