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
[ROCm/amdsmi commit: 3963036a05]
This commit is contained in:
committed by
Naveen Krishna Chatradhi
parent
86a4cc3d11
commit
ea0c860a1a
@@ -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)
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user