Change amdsmi_device_handle to amdsmi_processor_handle

grep -rli 'amdsmi_device_handle' * | xargs -i@ sed -i
's/amdsmi_device_handle/amdsmi_processor_handle/g' @

Change-Id: Ie25c51933dcc31e5b34c8070d0d5ba0e8cd05cc1
This commit is contained in:
Suma Hegde
2023-02-25 05:26:14 -05:00
committed by Naveen Krishna Chatradhi
parent c4aa7d2c03
commit 3963036a05
16 changed files with 609 additions and 571 deletions
+2 -2
View File
@@ -248,7 +248,7 @@ int main() {
CHK_AMDSMI_RET(ret)
// Allocate the memory for the device handlers on the socket
std::vector<amdsmi_device_handle> device_handles(device_count);
std::vector<amdsmi_processor_handle> device_handles(device_count);
// Get all devices of the socket
ret = amdsmi_get_device_handles(sockets[i],
&device_count, &device_handles[0]);
@@ -276,7 +276,7 @@ int main() {
bdf.function_number);
// Get handle from BDF
amdsmi_device_handle dev_handle;
amdsmi_processor_handle dev_handle;
ret = amdsmi_get_device_handle_from_bdf(bdf, &dev_handle);
CHK_AMDSMI_RET(ret)
+1 -1
View File
@@ -100,7 +100,7 @@ int main() {
CHK_AMDSMI_RET(ret)
// Allocate the memory for the device handlers on the socket
std::vector<amdsmi_device_handle> device_handles(device_count);
std::vector<amdsmi_processor_handle> device_handles(device_count);
// Get all devices of the socket
ret = amdsmi_get_device_handles(sockets[i],
&device_count, &device_handles[0]);