Skip to content

[primbench] Add missing '#include <cassert>' in primbench.hpp - #6662

Closed
lajagapp wants to merge 1 commit into
developfrom
users/lajagapp/prim-bench-fix
Closed

lajagapp wants to merge 1 commit into
developfrom
users/lajagapp/prim-bench-fix

Conversation

@lajagapp

Copy link
Copy Markdown
Contributor

Summary

  • Add #include <cassert> to shared/primbench/primbench.hpp
  • The assert() call at line 1506 (in format_eta()) was added in feat(primbench): support an extra backend #5512 without the corresponding include, causing a compile error: use of undeclared identifier 'assert'
  • This was not caught in CI because benchmarks are not built during pre-checkin. The failure surfaces when building rocPRIM benchmarks (e.g. in TheRock CI).

TheRock issue: ROCm/TheRock#4739

Test plan

  • Verify rocPRIM benchmarks compile successfully with BUILD_BENCHMARK=ON

Commit 7692a35 ("feat(primbench): support an extra backend #5512")
added an assert() call in format_eta() without including <cassert>.
This breaks any consumer that compiles primbench.hpp without a
transitive include of <cassert> from another header, such as the
rocPRIM benchmark build in TheRock.

Signed-off-by: Lenine Ajagappane <Lenine.Ajagappane@amd.com>
@lajagapp

Copy link
Copy Markdown
Contributor Author

Similar change merged now, closing this PR.
#5637

@lajagapp lajagapp closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant