2
0

SWDEV-512736 Fix RDC Policy callback printout (#114)

Change-Id: I6e018dcb0a6b272812c959649d913e3ba33def40

[ROCm/rdc commit: 93a8ab8915]
Este cometimento está contido em:
Pryor, Adam
2025-02-10 08:40:03 -06:00
cometido por GitHub
ascendente e2a8d40bb1
cometimento c00a9a709d
+5 -6
Ver ficheiro
@@ -82,8 +82,7 @@ rdc_status_t RdcPolicyImpl::rdc_policy_set(rdc_gpu_group_t group_id, rdc_policy_
gpu_index = group_info.entity_ids[i];
status = metric_fetcher_->fetch_smi_field(gpu_index, RDC_FI_GPU_PAGE_RETRIED, &value);
if (status == RDC_ST_MSI_ERROR)
return RDC_ST_NOT_SUPPORTED;
if (status == RDC_ST_MSI_ERROR) return RDC_ST_NOT_SUPPORTED;
}
}
@@ -219,16 +218,16 @@ void RdcPolicyImpl::rdc_policy_check_condition() {
status = metric_fetcher_->fetch_smi_field(gpu_index, map[policy.condition.type], &value);
if (status == RDC_ST_OK) {
if (value.value.l_int > policy.condition.value) {
if (RDC_POLICY_ACTION_GPU_RESET == policy.action) {
rdc_policy_gpu_reset(gpu_index);
}
// callback if needed
if (callback) {
rdc_policy_callback_response_t response = {1, policy.condition, group_id,
value.value.l_int};
callback(&response);
}
if (RDC_POLICY_ACTION_GPU_RESET == policy.action) {
rdc_policy_gpu_reset(gpu_index);
}
}
}
}