Skip to content

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 <[email protected]>
@bobpaw
Copy link
Collaborator Author

bobpaw commented Jan 4, 2024

This builds successfully on our FreeBSD VM.

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.

@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 <[email protected]>
@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
@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
@cwsmith cwsmith mentioned this pull request Oct 23, 2024
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