Add check for available_memory API
If the KFD IOCTL version doesn't support available_memory, don't run the
test. Just skip the test
Change-Id: Iebf526d4563ab9f3c054bbfb38c214a1b893fcb5
[ROCm/ROCR-Runtime commit: 64aa9009e1]
This commit is contained in:
committato da
Daniel Phillips
parent
179ddc4870
commit
b6467c7bc8
@@ -268,6 +268,12 @@ TEST_F(KFDMemoryTest, MemoryAllocAll) {
|
||||
HsaMemFlags memFlags = {0};
|
||||
memFlags.ui32.NonPaged = 1; // sys mem vs vram
|
||||
HSAuint64 available;
|
||||
|
||||
if (m_VersionInfo.KernelInterfaceMinorVersion < 9) {
|
||||
LOG() << "Available memory IOCTL not present in KFD. Exiting." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
void *object = NULL;
|
||||
int shrink = 21, success = HSAKMT_STATUS_NO_MEMORY;
|
||||
EXPECT_SUCCESS(hsaKmtAvailableMemory(defaultGPUNode, &available));
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user