Skip to content

Commit

Permalink
UTIL: fix pipeline params check for auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei-Lebedev committed Jun 24, 2024
1 parent ba203ab commit 91027ed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/utils/ucc_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,15 @@ static ucc_pipeline_params_t ucc_pipeline_params_default = {

int ucc_pipeline_params_is_auto(const ucc_pipeline_params_t *p)
{
return 0 == memcmp(p, &ucc_pipeline_params_auto, sizeof(*p));
if ((p->threshold == ucc_pipeline_params_auto.threshold) &&
(p->n_frags == ucc_pipeline_params_auto.n_frags) &&
(p->frag_size == ucc_pipeline_params_auto.frag_size) &&
(p->pdepth == ucc_pipeline_params_auto.pdepth) &&
(p->order == ucc_pipeline_params_auto.order)) {
return 1;
}

return 0;
}

int ucc_config_sscanf_pipeline_params(const char *buf, void *dest,
Expand Down

0 comments on commit 91027ed

Please sign in to comment.