-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add checks for Asan build type #1562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmanzoorTT the boilerplate for this already exists (untested recently, though I did have it working at one point).
See file cmake/modules/TTMLIRBuildTypes.cmake
.
Usage:
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Asan ...
5a3adab
to
97badcd
Compare
Thanks @nsmithtt; I have updated my PR and only added checks for Asan build. |
This PR introduces some changes #1566, but it seems that it doesn't fix the majority of failing tests. Both bugs are result of dangling reference of `ArrayRef` objects, because they receive temporary `SmallVector` objects. I've rebased this branch on #1562, for the ability to build with ASAN flag. Fixes #1565
50106d4
to
97badcd
Compare
This PR introduces some changes #1566, but it seems that it doesn't fix the majority of failing tests. Both bugs are result of dangling reference of `ArrayRef` objects, because they receive temporary `SmallVector` objects. I've rebased this branch on #1562, for the ability to build with ASAN flag. Fixes #1565
Sorry for accidentally pushing to this branch, I've reverted it to the previous state. I wanted to start a discussion regarding some changes, don't want to block this PR, since I think this should land on the main as soon as possible. |
* Address sanitization build causes errors for python bindings and shared libs. Other MLIR based projects (IREE, Stablehlo) seem to have similar issues and just skip building these components for sanitization builds. * Address sanitizer build can be enabled by setting '-DCMAKE_BUILD_TYPE=Asan -DTTMLIR_ENABLE_SHARED_LIB=OFF -DTTMLIR_ENABLE_BINDINGS_PYTHON=OFF' options with cmake command.
97badcd
to
58b706e
Compare
This PR introduces some changes #1566, but it seems that it doesn't fix the majority of failing tests. Both bugs are result of dangling reference of `ArrayRef` objects, because they receive temporary `SmallVector` objects. I've rebased this branch on #1562, for the ability to build with ASAN flag. Fixes #1565
This PR introduces some changes #1566, but it seems that it doesn't fix the majority of failing tests. Both bugs are result of dangling reference of `ArrayRef` objects, because they receive temporary `SmallVector` objects. I've rebased this branch on #1562, for the ability to build with ASAN flag. Fixes #1565
This PR introduces some changes #1566, but it seems that it doesn't fix the majority of failing tests. Both bugs are result of dangling reference of `ArrayRef` objects, because they receive temporary `SmallVector` objects. I've rebased this branch on #1562, for the ability to build with ASAN flag. Fixes #1565
* Address sanitization build causes errors for python bindings and shared libs. Other MLIR based projects (IREE, Stablehlo) seem to have similar issues and just skip building these components for sanitization builds. * Address sanitizer build can be enabled by setting '-DCMAKE_BUILD_TYPE=Asan -DTTMLIR_ENABLE_SHARED_LIB=OFF -DTTMLIR_ENABLE_BINDINGS_PYTHON=OFF' options with cmake command.
closes #1561