Return NOT_SUPPORT for set function in VM guest

Fix the unit tests which are fail in VM guest environment.

Change-Id: Id7c58887692bbdecba54f5d2d8463b292e19b4ad
This commit is contained in:
Bill(Shuzhou) Liu
2023-05-11 10:42:22 -05:00
parent 3fa4402833
commit dc4ba12e00
7 ha cambiato i file con 95 aggiunte e 0 eliminazioni
@@ -140,6 +140,12 @@ void TestPerfLevelReadWrite::Run(void) {
" ..." << std::endl;
}
ret = amdsmi_set_gpu_perf_level(processor_handles_[dv_ind], orig_pfl);
if (ret == AMDSMI_STATUS_NOT_SUPPORTED) {
IF_VERB(STANDARD) {
std::cout << "\t** Not supported on this machine" << std::endl;
}
continue;
}
CHK_ERR_ASRT(ret)
ret = amdsmi_get_gpu_perf_level(processor_handles_[dv_ind], &pfl);
CHK_ERR_ASRT(ret)