Enable RDC link Status feature
1.add link status APIs
2.Add link status example for link status API usage
[ROCm/rdc commit: 29b6699b62]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user