Renamed API amdsmi_dev_get_subsystem_id to
amdsmi_get_gpu_subsystem_id
grep -rli 'amdsmi_dev_get_subsystem_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_id/amdsmi_get_gpu_subsystem_id/g' @
Change-Id: I64616ac4c001f7761b8d83120d05d21c5c8e763f
[ROCm/amdsmi commit: 14f1367d6b]
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
06cedb0eed
commit
cccbca0e65
@@ -177,10 +177,10 @@ void TestIdInfoRead::Run(void) {
|
||||
}
|
||||
|
||||
// Get the device ID, name, vendor ID and vendor name for the sub-device
|
||||
err = amdsmi_dev_get_subsystem_id(processor_handles_[i], &id);
|
||||
err = amdsmi_get_gpu_subsystem_id(processor_handles_[i], &id);
|
||||
if (err == AMDSMI_STATUS_NOT_SUPPORTED) {
|
||||
// Verify api support checking functionality is working
|
||||
err = amdsmi_dev_get_subsystem_id(processor_handles_[i], nullptr);
|
||||
err = amdsmi_get_gpu_subsystem_id(processor_handles_[i], nullptr);
|
||||
ASSERT_EQ(err, AMDSMI_STATUS_NOT_SUPPORTED);
|
||||
} else {
|
||||
CHK_ERR_ASRT(err)
|
||||
@@ -188,7 +188,7 @@ void TestIdInfoRead::Run(void) {
|
||||
std::cout << "\t**Subsystem ID: 0x" << std::hex << id << std::endl;
|
||||
}
|
||||
// Verify api support checking functionality is working
|
||||
err = amdsmi_dev_get_subsystem_id(processor_handles_[i], nullptr);
|
||||
err = amdsmi_get_gpu_subsystem_id(processor_handles_[i], nullptr);
|
||||
ASSERT_EQ(err, AMDSMI_STATUS_INVAL);
|
||||
}
|
||||
err = amdsmi_dev_get_subsystem_name(processor_handles_[i], buffer, kBufferLen);
|
||||
|
||||
@@ -213,7 +213,7 @@ void TestMutualExclusion::Run(void) {
|
||||
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
|
||||
ret = amdsmi_get_gpu_vram_vendor(processor_handles_[0], dmy_str, 10);
|
||||
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
|
||||
ret = amdsmi_dev_get_subsystem_id(processor_handles_[0], &dmy_ui16);
|
||||
ret = amdsmi_get_gpu_subsystem_id(processor_handles_[0], &dmy_ui16);
|
||||
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
|
||||
ret = amdsmi_dev_get_pci_id(processor_handles_[0], &dmy_ui64);
|
||||
CHECK_RET(ret, AMDSMI_STATUS_BUSY);
|
||||
|
||||
@@ -187,7 +187,7 @@ void TestBase::PrintDeviceHeader(amdsmi_processor_handle dv_ind) {
|
||||
}
|
||||
}
|
||||
|
||||
err = amdsmi_dev_get_subsystem_id(dv_ind, &val_ui16);
|
||||
err = amdsmi_get_gpu_subsystem_id(dv_ind, &val_ui16);
|
||||
CHK_ERR_ASRT(err)
|
||||
IF_VERB(STANDARD) {
|
||||
std::cout << "\t**Subsystem ID: 0x" << std::hex << val_ui16 << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user