kfdtest: Using non-paged memory allocation only on devices that have MES scheduler

Change-Id: I9181b353aac791f546aa7679ffd7cb8d9f8ef765
This commit is contained in:
Yifan Zhang
2023-02-23 14:08:21 +08:00
parent 564913526a
commit e40ae8481e
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -254,7 +254,7 @@ HSAuint64 GetSystemTickCountInMicroSec() {
const HsaMemoryBuffer HsaMemoryBuffer::Null;
HsaMemoryBuffer::HsaMemoryBuffer(HSAuint64 size, unsigned int node, bool zero, bool isLocal, bool isExec,
bool isScratch, bool isReadOnly, bool isUncached)
bool isScratch, bool isReadOnly, bool isUncached, bool NonPaged)
:m_Size(size),
m_pUser(NULL),
m_pBuf(NULL),
@@ -278,7 +278,7 @@ HsaMemoryBuffer::HsaMemoryBuffer(HSAuint64 size, unsigned int node, bool zero, b
EXPECT_EQ(isUncached, 0) << "Uncached flag is relevant only for system or host memory";
} else {
m_Flags.ui32.HostAccess = 1;
m_Flags.ui32.NonPaged = 0;
m_Flags.ui32.NonPaged = NonPaged ? 1 : 0;
m_Flags.ui32.CoarseGrain = 0;
m_Flags.ui32.NoNUMABind = 1;
m_Flags.ui32.Uncached = isUncached;