Add the RdcSmiDiagnostic module

Provides a RdcSmiDiagnostic module, which will call rocm_smi_lib.

It will support following diagnostics: Get GPU Topology, Check GPU
parameters and check processes running on the GPUs.

The grpc client and server side diagnostics function is added.

The diag module is added to the rdci.

Change-Id: I10a0cf3c20556a61373ab686f82cae75acaa40dd
This commit is contained in:
Bill(Shuzhou) Liu
2021-06-21 15:35:06 -04:00
parent 5a4bf97327
commit 76ccf58008
22 changed files with 1330 additions and 13 deletions
+12
View File
@@ -334,6 +334,18 @@ rdc_status_t rdc_diagnostic_run(rdc_handle_t p_rdc_handle,
rdc_diagnostic_run(group_id, level, response);
}
rdc_status_t rdc_test_case_run(rdc_handle_t p_rdc_handle,
rdc_gpu_group_t group_id,
rdc_diag_test_cases_t test_case,
rdc_diag_test_result_t* result) {
if (!p_rdc_handle) {
return RDC_ST_INVALID_HANDLER;
}
return static_cast<amd::rdc::RdcHandler*>(p_rdc_handle)->
rdc_test_case_run(group_id, test_case, result);
}
const char* rdc_status_string(rdc_status_t result) {
switch (result) {
case RDC_ST_OK: