Enable RDC link Status feature

1.add link status APIs
   2.Add link status example for link status API usage
이 커밋은 다음에 포함됨:
stali 작성하고 Li, Star가 2024-12-23 09:30:21 +08:00를 커밋함
1 부모 f4de4b0529
커밋 29b6699b62
15 파일이 변경됨
+315 -22

검색과 일치하는 파일 없음

+1 -1
파일 보기
@@ -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];
+2 -1
파일 보기
@@ -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