Enable RDC link Status feature

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


[ROCm/rdc commit: 29b6699b62]
Šī revīzija ir iekļauta:
stali authored and Li, Star committed 2024-12-23 09:30:21 +08:00
1 vecāks 725599b51c
revīzija 52bb0d6466
15 files changed
+315 -22

No files matched your search

+1 -1
Parādīt failu
@@ -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