Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA]: Add host-side sanitizers #2241

Open
1 task done
fbusato opened this issue Aug 14, 2024 · 1 comment
Open
1 task done

[FEA]: Add host-side sanitizers #2241

fbusato opened this issue Aug 14, 2024 · 1 comment
Labels
feature request New feature or request.

Comments

@fbusato
Copy link
Contributor

fbusato commented Aug 14, 2024

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

@Artem-B
Copy link
Contributor

Artem-B commented Nov 13, 2024

#2789 is a related tactical issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request.
Projects
Status: Todo
Development

No branches or pull requests

2 participants