Skip to content

Conversation

akifcorduk
Copy link
Contributor

This PR adds sanitizer build option.
To use sanitizer with cuda runtime, one must follow a few steps:

  1. Find libasan.so with "gcc -print-file-name=libasan.so"
  2. Run the binary with env var set: LD_PRELOAD=$PATH_TO_LIBASAN ASAN_OPTIONS='protect_shadow_gap=0:replace_intrin=0'
  3. (Optional) To run with a debugger (gdb or cuda-gdb) use the additional ASAN option alloc_dealloc_mismatch=0

@akifcorduk akifcorduk added this to the 25.10 milestone Sep 10, 2025
@akifcorduk akifcorduk requested review from a team as code owners September 10, 2025 12:51
@akifcorduk akifcorduk added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 10, 2025
Copy link
Contributor

@tmckayus tmckayus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, defer on the option naming discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants