Enable RDC link Status feature

1.add link status APIs
   2.Add link status example for link status API usage


[ROCm/rdc commit: 29b6699b62]
Tá an tiomantas seo le fáil i:
stali údaraithe agus Li, Star tiomanta 2024-12-23 09:30:21 +08:00
1 tuismitheoir 725599b51c
tiomantas 52bb0d6466
15 comhad athraithe
+315 -22

Níor tháinig aon chomhaid le do chuardach

+1 -1
Féach ar an gComhad
@@ -654,7 +654,7 @@ typedef enum {
#define RDC_MAX_NUM_OF_LINKS 16
typedef struct {
int32_t gpu_index;
uint32_t gpu_index;
uint32_t num_of_links; // The size of the array link_states
rdc_topology_link_type_t link_types; // XGMI, PCIe, and so on
rdc_link_state_t link_states[RDC_MAX_NUM_OF_LINKS];
@@ -147,9 +147,10 @@ class RdcEmbeddedHandler final : public RdcHandler {
RdcWatchTablePtr watch_table_;
RdcMetricsUpdaterPtr metrics_updater_;
RdcPolicyPtr policy_;
RdcTopologyLinkPtr topologylink_;
RdcConfigSettingsPtr config_handler_;
std::future<void> updater_;
RdcTopologyLinkPtr topologylink_;
};
} // namespace rdc