Skip to content

[FEA]: Add host-side sanitizers #2241

Open

Description

@fbusato

Is this a duplicate?

Area

Infrastructure

Is your feature request related to a problem? Please describe.

Sanitizers are extremely useful for detecting hard-to-find and subtle bugs. They include UB sanitizer, address sanitizer, memory sanitizer, and thread sanitizer. They can work in conjunction with CUDA code with a few workarounds. They are complementary to CUDA compute-sanitizer. Compiler-provided sanitizers are also lightweight and much more efficient than external tools such as valgrind.
I don't see such support for the current build configurations. It would be great to add them to make the CCCL libraries even more robust.

Other optional tools are the static analyzers provided by the main compilers

Risks: very low detection rate and false positives

Describe the solution you'd like

Add common compiler flags for GCC/Clang:

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. Artem-B commented on Nov 13, 2024

    @Artem-B
    Contributor

    #2789 is a related tactical issue.

  2. self-assigned this
    on Sep 3, 2025
  3. added
    infra
    on Jan 13, 2026
  4. removed their assignment
    on Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    infra

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions