kfdtest: use flag NoNUMABind to allocate system memory

Allocate system memory from node id 0 will fail on NUMA system which has
no memory on node 0. Change to use new flag NoNUMABind to allocate
system memory from NUMA nodes which have free memory.

Change-Id: I8ef9ca28fc2ab5dd31d07a2d3eaf1d5886e798a0
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Bu işleme şunda yer alıyor:
Philip Yang
2019-09-13 16:18:00 -04:00
ebeveyn 42392f093f
işleme 69d8f2d734
2 değiştirilmiş dosya ile 4 ekleme ve 0 silme
+3
Dosyayı Görüntüle
@@ -364,6 +364,7 @@ TEST_F(KFDMemoryTest , MapMemoryToGPU) {
TEST_F(KFDMemoryTest, InvalidMemoryPointerAlloc) {
TEST_START(TESTPROFILE_RUNALL)
m_MemoryFlags.ui32.NoNUMABind = 1;
EXPECT_EQ(HSAKMT_STATUS_INVALID_PARAMETER, hsaKmtAllocMemory(0 /* system */, PAGE_SIZE, m_MemoryFlags, NULL));
TEST_END
@@ -1685,6 +1686,8 @@ TEST_F(KFDMemoryTest, CheckZeroInitializationSysMem) {
unsigned int offset = 257; // a constant offset, should be smaller than 512.
unsigned int size = sysBufSize / sizeof(*pDb);
m_MemoryFlags.ui32.NoNUMABind = 1;
while (count--) {
ret = hsaKmtAllocMemory(0 /* system */, sysBufSize, m_MemoryFlags,
reinterpret_cast<void**>(&pDb));