SWDEV-385838 - Don't run Unit_HMM_OverSubscriptionTst test on non xnack device. (#271)
Change-Id: I342affb0cd62ce8fab4b35d6c9e0f1b6fb75bee9
这个提交包含在:
@@ -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
|
||||
|
||||
在新工单中引用
屏蔽一个用户