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>
[ROCm/ROCR-Runtime commit: 55cb03dbae]
This commit is contained in:
@@ -56,6 +56,12 @@ TEST_F(KFDLocalMemoryTest, AccessLocalMem) {
|
|||||||
int defaultGPUNode = m_NodeInfo.HsaDefaultGPUNode();
|
int defaultGPUNode = m_NodeInfo.HsaDefaultGPUNode();
|
||||||
ASSERT_GE(defaultGPUNode, 0) << "failed to get default GPU Node";
|
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
|
//local memory
|
||||||
HsaMemoryBuffer destBuf(PAGE_SIZE, defaultGPUNode, false, true);
|
HsaMemoryBuffer destBuf(PAGE_SIZE, defaultGPUNode, false, true);
|
||||||
HsaEvent *event;
|
HsaEvent *event;
|
||||||
|
|||||||
Reference in New Issue
Block a user