Renamed API amdsmi_get_event_notification
to amdsmi_get_gpu_event_notification
grep -rli 'amdsmi_get_event_notification' * | xargs -i@ sed -i
's/amdsmi_get_event_notification/amdsmi_get_gpu_event_notification/g' @
Change-Id: I587f1fa785fabbd5347dca886636a81e3c2d1003
[ROCm/amdsmi commit: 6d6d8ce819]
Cette révision appartient à :
révisé par
Naveen Krishna Chatradhi
Parent
8bc7c2acc9
révision
19eefc2c69
@@ -127,7 +127,7 @@ void TestEvtNotifReadWrite::Run(void) {
|
||||
uint32_t num_elem = 10;
|
||||
bool read_again = false;
|
||||
|
||||
ret = amdsmi_get_event_notification(10000, &num_elem, data);
|
||||
ret = amdsmi_get_gpu_event_notification(10000, &num_elem, data);
|
||||
if (ret == AMDSMI_STATUS_SUCCESS || ret == AMDSMI_STATUS_INSUFFICIENT_SIZE) {
|
||||
EXPECT_LE(num_elem, 10) <<
|
||||
"Expected the number of elements found to be <= buffer size (10)";
|
||||
@@ -155,13 +155,13 @@ void TestEvtNotifReadWrite::Run(void) {
|
||||
} else {
|
||||
// This should always fail. We want to print out the return code.
|
||||
EXPECT_EQ(ret, AMDSMI_STATUS_SUCCESS) <<
|
||||
"Unexpected return code for amdsmi_get_event_notification()";
|
||||
"Unexpected return code for amdsmi_get_gpu_event_notification()";
|
||||
}
|
||||
|
||||
// In case GPU Pre reset event was collected in the previous read,
|
||||
// read again to get the GPU Post reset event.
|
||||
if (read_again) {
|
||||
ret = amdsmi_get_event_notification(10000, &num_elem, data);
|
||||
ret = amdsmi_get_gpu_event_notification(10000, &num_elem, data);
|
||||
if (ret == AMDSMI_STATUS_SUCCESS || ret == AMDSMI_STATUS_INSUFFICIENT_SIZE) {
|
||||
EXPECT_LE(num_elem, 10) <<
|
||||
"Expected the number of elements found to be <= buffer size (10)";
|
||||
@@ -186,7 +186,7 @@ void TestEvtNotifReadWrite::Run(void) {
|
||||
} else {
|
||||
// This should always fail. We want to print out the return code.
|
||||
EXPECT_EQ(ret, AMDSMI_STATUS_SUCCESS) <<
|
||||
"Unexpected return code for amdsmi_get_event_notification()";
|
||||
"Unexpected return code for amdsmi_get_gpu_event_notification()";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur