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

Fix OpenMP Launch Mem Leak and Add Clang Sanitizer Build #1730

Merged
merged 7 commits into from
Sep 4, 2024

Conversation

rchen20
Copy link
Member

@rchen20 rchen20 commented Sep 4, 2024

Summary

  • This PR is a bugfix

  • It does the following:

    • Fixes memory leak in the Launch OpenMP backend. Memory leak was found via clang ASAN.
    • Updates some Intel build scripts.
    • Adds build script for clang's ASAN and UBSAN sanitizers on TOSS4.
  • Note: Does not fix the OpenMP Launch reduction tests. Will iterate with LC on those.

Copy link
Member

@rhornung67 rhornung67 left a comment

Choose a reason for hiding this comment

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

I we no longer have an asan build and test in our GitLab CI, we should add it.

@@ -77,6 +77,9 @@ struct LaunchExecute<RAJA::omp_launch_t> {
ctx.shared_mem_ptr = (char*) malloc(launch_params.shared_mem_size);

expt::invoke_body(f_params, loop_body.get_priv(), ctx);

free(ctx.shared_mem_ptr);
ctx.shared_mem_ptr = nullptr;
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for finding this!

@rchen20 rchen20 merged commit ea55eed into develop Sep 4, 2024
26 checks passed
@rchen20 rchen20 deleted the bugfix/chen59/omplaunchmemleak branch September 4, 2024 20:12
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.

4 participants