Skip to content

Commit

Permalink
Make an empty unique_id file non-fatal
Browse files Browse the repository at this point in the history
This isn't supported on all models, so just comment out on failure
instead of fully failing

Change-Id: Id36d5df7c87abbb41f7b6be43abfea82004703a6
  • Loading branch information
kentrussell committed Jun 4, 2020
1 parent 633c852 commit 8cf4454
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/rocm_smi_test/functional/sys_info_read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,17 @@ void TestSysInfoRead::Run(void) {
err = rsmi_dev_unique_id_get(i, nullptr);
ASSERT_EQ(err, RSMI_STATUS_NOT_SUPPORTED);
} else {
CHK_ERR_ASRT(err)
IF_VERB(STANDARD) {
std::cout << "\t**GPU Unique ID : " << std::hex << val_ui64 <<
std::endl;
if (err == RSMI_STATUS_SUCCESS) {
IF_VERB(STANDARD) {
std::cout << "\t**GPU Unique ID : " << std::hex << val_ui64 <<
std::endl;
}
// Verify api support checking functionality is working
err = rsmi_dev_unique_id_get(i, nullptr);
ASSERT_EQ(err, RSMI_STATUS_INVALID_ARGS);
} else {
std::cout << "rsmi_dev_unique_id_get() failed with error " << err << std::endl;
}
// Verify api support checking functionality is working
err = rsmi_dev_unique_id_get(i, nullptr);
ASSERT_EQ(err, RSMI_STATUS_INVALID_ARGS);
}

err = rsmi_version_get(&ver);
Expand Down

0 comments on commit 8cf4454

Please sign in to comment.