SWDEV-385838 - Don't run Unit_HMM_OverSubscriptionTst test on non xnack device. (#271)

Change-Id: I342affb0cd62ce8fab4b35d6c9e0f1b6fb75bee9
这个提交包含在:
ROCm CI Service Account
2023-06-21 15:59:58 +05:30
提交者 GitHub
父节点 b65b09234d
当前提交 9a40c9a6da
@@ -140,6 +140,14 @@ static void DisplayHmmFlgs(int *Signal) {
}
TEST_CASE("Unit_HMM_OverSubscriptionTst") {
hipDeviceProp_t prop;
HIP_CHECK(hipGetDeviceProperties(&prop, 0));
char *p = nullptr;
p = strstr(prop.gcnArchName, "xnack+");
if (p == nullptr) {
INFO("Skipped due current device is non xnack device.");
return;
}
int HmmEnabled = 0;
// The following Shared Mem is to get Max GPU Mem
// The size requested is for three ints