Skip to content

Fix assert in ravl_node_rank_difference_parent() #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Sep 11, 2024

Description

Fix assert in ravl_node_rank_difference_parent().
ravl_node_rank() do not have to be positive - it can return (-1), so the assert has to be corrected.

For example:
if ravl_node_rank(p) = 0 and ravl_node_rank(n) = -1, then rv = 1.

Ref: #717

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

This patch is tested in #715

@ldorau ldorau requested a review from a team as a code owner September 11, 2024 06:48
Fix assert in ravl_node_rank_difference_parent().
ravl_node_rank() do not have to be positive - it can return (-1),
so the assert has to be corrected.

For example:
if ravl_node_rank(p) = 0 and ravl_node_rank(n) = -1, then rv = 1.

Ref: oneapi-src#717

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau force-pushed the Fix_assert_in_ravl_node_rank_difference_parent branch from 29917d6 to dd41215 Compare September 11, 2024 06:56
@bratpiorka bratpiorka requested a review from lplewa September 11, 2024 07:35
@ldorau ldorau merged commit c4d12b6 into oneapi-src:main Sep 11, 2024
66 checks passed
@ldorau ldorau deleted the Fix_assert_in_ravl_node_rank_difference_parent branch September 12, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants