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

Added cmake support for address sanitizer, and fixed related issue #28

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

HasKha
Copy link
Contributor

@HasKha HasKha commented Apr 16, 2024

changes:

  • Added support for sanitizer. You can enable by adding the cmake flag -DUSE_SANITIZER=Address, e.g.: cmake -DNASOQ_BLAS_BACKEND=OpenBLAS -DNASOQ_USE_CLAPACK=ON -DUSE_SANITIZER=Address .
  • Fixed an issue that was being flagged by the sanitizer. The char flag 'L' or 'U' is used as a string by clapack, which means it needs a string terminator, so we need at least a char[2] with U/L + '\0'.

note that the sanitizers cmake script is copied from https://github.com/adobe/lagrange/blob/main/cmake/recipes/external/sanitizers.cmake without changes, which is slightly modified from its original form.

@cheshmi cheshmi self-assigned this Apr 16, 2024
Copy link
Collaborator

@cheshmi cheshmi left a comment

Choose a reason for hiding this comment

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

Thanks!

@cheshmi cheshmi merged commit fc2051d into sympiler:master Apr 16, 2024
3 checks passed
@HasKha HasKha deleted the gori/sanitizers branch April 16, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants