Skip to content

[math-libs] Add pre_hook workaround for hipCUB ASAN ROCMChecks failure#4456

Open
lajagapp wants to merge 2 commits intomainfrom
users/lajagapp/hipcub-asan-fix
Open

[math-libs] Add pre_hook workaround for hipCUB ASAN ROCMChecks failure#4456
lajagapp wants to merge 2 commits intomainfrom
users/lajagapp/hipcub-asan-fix

Conversation

@lajagapp
Copy link
Copy Markdown
Contributor

@lajagapp lajagapp commented Apr 10, 2026

Motivation

hipCUB ASAN builds fail during configure when BUILD_BENCHMARK=ON.
#4455

Technical Details

Add pre_hook_hipCUB.cmake to set ROCM_WARN_TOOLCHAIN_VAR OFF in the cache before ROCMChecks loads, preventing variable_watch() from being installed. This mirrors why rocRAND is unaffected, it sets the variable before ROCMChecks in its own Dependencies.cmake.

TheRock issue: #4455
Upstream fix: ROCm/rocm-libraries#6338

Test Plan

  • hipCUB ASAN CI passes with BUILD_BENCHMARK=ON
  • Non-ASAN hipCUB builds unaffected

Signed-off-by: Lenine Ajagappane <Lenine.Ajagappane@amd.com>
Signed-off-by: Lenine Ajagappane <Lenine.Ajagappane@amd.com>
@lajagapp lajagapp marked this pull request as ready for review April 10, 2026 15:08
@lajagapp
Copy link
Copy Markdown
Contributor Author

@geomin12 geomin12 requested review from HereThereBeDragons, marbre, stanleytsang-amd and umfranzw and removed request for geomin12 April 10, 2026 15:13
@lajagapp
Copy link
Copy Markdown
Contributor Author

Upstream fix merged now - ROCm/rocm-libraries#6338.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

1 participant