https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114596

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
> For selector construct = {teams, parallel, for}
>   score1 = 29   score2 = 29
> -----<quote>----------
>
> The constructs[i]'s score look fine.
>
> But I wonder why score == 29 and not 28.

Answer: omp_context_compute_score starts with:

  *score = 1;

which is set (only) in the error case to "-1" and otherwise, scores only get
added. — I think a constant offset to all scores does not harm (as it is only
used internally) but I still find it confusing.

Reply via email to