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

Increased platform support for PCU #412

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Increased platform support for PCU #412

merged 3 commits into from
Jan 24, 2024

Conversation

bobpaw
Copy link
Collaborator

@bobpaw bobpaw commented Jan 4, 2024

Increased platform support for PCU

Add CMake check for mallctl and use it in PCU_GetMem if available (for BSD).
Add private PCU link to libexecinfo on BSD.
Enable pcu/reel/reel.c functions on BSD.
Make PUMI_HAS_MALLINFO, PUMI_HAS_MALLINFO2, PUMI_HAS_MALLCTL private compiler definitions for pcu.

Fixes #409

Add CMake check for mallctl and use it in PCU_GetMem if available.
Add private PCU link to libexecinfo on BSD.
Enable pcu/reel/reel.c functions on BSD.

Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
@bobpaw
Copy link
Collaborator Author

bobpaw commented Jan 4, 2024

This builds successfully on our FreeBSD VM.

CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you. There is one small change/comment.

pcu/CMakeLists.txt Outdated Show resolved Hide resolved
Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
@bobpaw bobpaw changed the title BSD support for PCU Increased platform support for PCU Jan 5, 2024
Removed if(GNU or CLANG) because if these checks pass, we can use it on non-GNU
  systems as well.
Removed get_chunks() in test/describe.cc and replaced get_peak() with
  PCU_GetMem().

Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
@cwsmith
Copy link
Contributor

cwsmith commented Jan 8, 2024

@bobpaw Thank you for working on this. Please change it to an 'active' (i.e., not draft) PR when its ready for another review.

@bobpaw
Copy link
Collaborator Author

bobpaw commented Jan 24, 2024

Confirmed that tests pass on our BSD box. Marking ready for review.
Note: Automated testing may require the MPIR_CVAR_ENABLE_GPU=0 environmental variable if using a gpu-enabled MPI build with no GPU.

@bobpaw bobpaw marked this pull request as ready for review January 24, 2024 19:00
@bobpaw bobpaw requested a review from cwsmith January 24, 2024 19:00
Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@cwsmith cwsmith merged commit 58d72ce into develop Jan 24, 2024
4 checks passed
@cwsmith cwsmith added the v2.2.9 label Jan 24, 2024
@cwsmith cwsmith deleted the apw/pcu-bsd-support branch January 24, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants