Skip to content

Conversation

@bbernhar
Copy link
Contributor

ASSERT(expr) would get optimized out on release builds, even if gpgmm_always_assert was true. This fix changes the ASSERT generated code to always evaluate the condition first and hint failure is unreachable rather then always assume true.

ASSERT(expr) would get optimized out on release builds, even if gpgmm_always_assert was true. This fix changes the ASSERT generated code to always evaluate the condition first and hint failure is unreachable rather then always assume true.
@bbernhar bbernhar enabled auto-merge (squash) August 25, 2022 18:32
@github-actions github-actions bot added the Frontend Changes to common or GPU API agnostic code. label Aug 25, 2022
@bbernhar bbernhar merged commit c85dae9 into main Aug 25, 2022
@bbernhar bbernhar deleted the fix_assert branch August 25, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Changes to common or GPU API agnostic code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants