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

Try to fix remaining ASAN-reported leaks #7767

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Try to fix remaining ASAN-reported leaks #7767

merged 1 commit into from
Aug 21, 2023

Conversation

steven-johnson
Copy link
Contributor

This fixes all but one of the known remaining ASAN-related leaks; the remaining is in tutorial_lesson_19_wrapper_funcs

I can't debug that one locally because the leaks are in OpenCL and I am temporarily relegated to using a 'cloud' machine with no real GPU for linux-x64 -- if someone with access to such a machine could take a look, I'd appreciate it (examples of leakage at https://buildbot.halide-lang.org/master/#/builders/154/builds/79/steps/12/logs/tutorial_lesson_19_wrapper_funcs)

Also, drive-by change to turn off CCache for sanitizer builds in the presets files -- we are already doing this on the buildbots via config script, but doing it in the presets is good too for people who want to use it locally (for reasons that aren't entirely clear, CCache and sanitizers don't like each other)

This fixes all but one of the known remaining ASAN-related leaks; the remaining is in `tutorial_lesson_19_wrapper_funcs`

I can't debug that one locally because the leaks are in OpenCL and I am temporarily relegated to using a 'cloud' machine with no real GPU for linux-x64 -- if someone with access to such a machine could take a look, I'd appreciate it (examples of leakage at https://buildbot.halide-lang.org/master/#/builders/154/builds/79/steps/12/logs/tutorial_lesson_19_wrapper_funcs)
@steven-johnson steven-johnson requested a review from abadams August 16, 2023 18:16
@@ -228,6 +228,8 @@ int main(int argc, char **argv) {
return 1;
}

Internal::JITSharedRuntime::release_all();
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious, in what cases do you need to explicitly call this to prevent leaks?

Copy link
Member

Choose a reason for hiding this comment

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

Whenever memoize is used in a jit test

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks, not the case in my driver code

@steven-johnson steven-johnson merged commit 36eb0b2 into main Aug 21, 2023
@steven-johnson steven-johnson deleted the srj/leaks branch August 21, 2023 17:05
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
This fixes all but one of the known remaining ASAN-related leaks; the remaining is in `tutorial_lesson_19_wrapper_funcs`

I can't debug that one locally because the leaks are in OpenCL and I am temporarily relegated to using a 'cloud' machine with no real GPU for linux-x64 -- if someone with access to such a machine could take a look, I'd appreciate it (examples of leakage at https://buildbot.halide-lang.org/master/#/builders/154/builds/79/steps/12/logs/tutorial_lesson_19_wrapper_funcs)
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.

3 participants