Clean up the APIs

Remove and rename APIs after review.

Change-Id: I5464f200eb605b366673f8abca95183c3837843b
This commit is contained in:
Bill(Shuzhou) Liu
2023-05-25 13:03:30 -05:00
committed by Shuzhou Liu
parent 7477562374
commit 62ce965409
13 changed files with 34 additions and 789 deletions
+3 -3
View File
@@ -59,7 +59,7 @@
const char *err_str; \
std::cout << "AMDSMI call returned " << RET << " at line " \
<< __LINE__ << std::endl; \
amdsmi_status_string(RET, &err_str); \
amdsmi_status_code_to_string(RET, &err_str); \
std::cout << err_str << std::endl; \
return RET; \
} \
@@ -478,9 +478,9 @@ int main() {
// Get ECC error counts
amdsmi_error_count_t err_cnt_info = {};
ret = amdsmi_get_gpu_ecc_error_count(processor_handles[j], &err_cnt_info);
ret = amdsmi_get_gpu_total_ecc_count(processor_handles[j], &err_cnt_info);
CHK_AMDSMI_RET(ret)
printf(" Output of amdsmi_get_gpu_ecc_error_count:\n");
printf(" Output of amdsmi_get_gpu_total_ecc_count:\n");
printf("\tCorrectable errors: %lu\n", err_cnt_info.correctable_count);
printf("\tUncorrectable errors: %lu\n\n",
err_cnt_info.uncorrectable_count);