diff --git a/catch/unit/memory/hipHmmOvrSubscriptionTst.cc b/catch/unit/memory/hipHmmOvrSubscriptionTst.cc index de5d48ee4b..22fd5eb4b6 100644 --- a/catch/unit/memory/hipHmmOvrSubscriptionTst.cc +++ b/catch/unit/memory/hipHmmOvrSubscriptionTst.cc @@ -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