Skip to content

Use Halide_PYTHON_LAUNCHER to implement ASAN toolchain fixes #7657

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

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

alexreinking
Copy link
Member

This is a PR-to-PR that implements the changes suggested in my review of #7604

Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

Thanks!

# Module-support code, so disable it here.
set(EXTRA_ENV_VARS ASAN_OPTIONS=detect_leaks=0 ${Halide_SANITIZER_ENV_VARS})

if (CMAKE_VERSION VERSION_LESS 3.24)
Copy link
Contributor

Choose a reason for hiding this comment

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

...do I even want to know what this is about?

Copy link
Member Author

Choose a reason for hiding this comment

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

The -- is a pretty common feature that indicates "end of flags". The remaining arguments are not parsed for flags. It's basically a macro hygiene thing. CMake only started supporting it as of 3.24, though.

@steven-johnson steven-johnson merged commit 2bb54ed into halide:srj/fix-asan Jun 23, 2023
@alexreinking alexreinking deleted the python-launcher branch June 23, 2023 18:03
steven-johnson added a commit that referenced this pull request Jun 23, 2023
* Get the ASAN toolchain working again

Various fixes to enable ASAN to finally work (linux x64 only).

Note that this found several ASAN failures in the Anderson2021 autoscheduler tests, which are *not* fixed yet; I'll fix thus in a subsequent PR.

* Remove stuff that I didn't mean to check in

* Configure cuda-specific tests properly too

* trigger buildbots

* Update CodeGen_LLVM.cpp

* Update CodeGen_LLVM.cpp

* Fix sloppiness?

* Update CMakeLists.txt

* trigger buildbots

* Use Halide_PYTHON_LAUNCHER to implement ASAN toolchain fixes (#7657)

* Use new Halide_PYTHON_LAUNCHER to set env vars

* Update CMake docs for Halide_SANITIZER_ENV_VARS

---------

Co-authored-by: Alex Reinking <areinkin@qti.qualcomm.com>

---------

Co-authored-by: Alex Reinking <alex.reinking@gmail.com>
Co-authored-by: Alex Reinking <areinkin@qti.qualcomm.com>
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Get the ASAN toolchain working again

Various fixes to enable ASAN to finally work (linux x64 only).

Note that this found several ASAN failures in the Anderson2021 autoscheduler tests, which are *not* fixed yet; I'll fix thus in a subsequent PR.

* Remove stuff that I didn't mean to check in

* Configure cuda-specific tests properly too

* trigger buildbots

* Update CodeGen_LLVM.cpp

* Update CodeGen_LLVM.cpp

* Fix sloppiness?

* Update CMakeLists.txt

* trigger buildbots

* Use Halide_PYTHON_LAUNCHER to implement ASAN toolchain fixes (halide#7657)

* Use new Halide_PYTHON_LAUNCHER to set env vars

* Update CMake docs for Halide_SANITIZER_ENV_VARS

---------

Co-authored-by: Alex Reinking <areinkin@qti.qualcomm.com>

---------

Co-authored-by: Alex Reinking <alex.reinking@gmail.com>
Co-authored-by: Alex Reinking <areinkin@qti.qualcomm.com>
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