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 imbalanced calloc/MPI_free_mem. #766

Merged
merged 2 commits into from
Aug 25, 2022
Merged

Conversation

vehre
Copy link
Collaborator

@vehre vehre commented Aug 24, 2022

coverage on master
Codecov branch

Summary of changes

Fix imbalanced calloc/MPI_free_mem.

Rationale for changes

Memory allocated by calloc was errorneously freeed using MPI_free_mem,
which might confuse Intel MPI. This should fix a bit more of #762.

Additional info and certifications

This pull request (PR) is a:

  • Bug fix
  • Feature addition
  • Other, Please describe:

I certify that

  • I certify that:
    • I have reviewed and followed the contributing guidelines
    • I will wait at least 24 hours before self-approving the PR to give another
      OpenCoarrays developer a chance to review my proposed code
    • I have not introduced errant white space (no trailing white space or white space errors may
      be introduced)
    • I have added an explanation of what these changes do and why they should be included
    • I have checked to ensure there aren't other open Pull Requests for the same change
    • I have you written new tests for these changes
    • I have successfully tested these changes locally
    • I have commented any non-trivial, non-obvious code changes
    • The commits are logically atomic, self consistent and coherent
    • The commit messages follow best practices
    • Test coverage is maintained or increased after this is merged

Code coverage data

coverage on master

Memory allocated by calloc was errorneously freeed using MPI_free_mem,
which might confuse Intel MPI. This should fix a bit more of #762.
Copy link
Collaborator

@everythingfunctional everythingfunctional left a comment

Choose a reason for hiding this comment

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

I don't fully understand why, but it works now!

@everythingfunctional everythingfunctional merged commit 9538de4 into main Aug 25, 2022
@everythingfunctional everythingfunctional deleted the issue-762-v2 branch August 25, 2022 14:33
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.

None yet

2 participants