Skip to content

define CAMP_USE_PLATFORM_DEFAULT_STREAM, if built with mfem+raja#1893

Closed
chapman39 wants to merge 4 commits into
developfrom
bugfix/chapman39/define-camp-macro
Closed

define CAMP_USE_PLATFORM_DEFAULT_STREAM, if built with mfem+raja#1893
chapman39 wants to merge 4 commits into
developfrom
bugfix/chapman39/define-camp-macro

Conversation

@chapman39

Copy link
Copy Markdown
Contributor

A recent MFEM PR checks if CAMP_USE_PLATFORM_DEFAULT_STREAM=1. This is a new restriction essentially forcing camp to use default platform stream, if MFEM is built with RAJA. https://github.com/mfem/mfem/pull/5349/changes

However if camp or RAJA are included first, then CAMP_USE_PLATFORM_DEFAULT_STREAM will be set to 0 by default. https://github.com/llnl/camp/blob/3e702a10cbf31877e17e83558d2c4abf47960c8b/include/camp/defines.hpp#L164-L168

So, the solution is to either mass change the order of include headers such that MFEM is always first, or define the camp macro in the axom config header, so its guaranteed to be defined first.

Another detail is it would be more accurate to also check if MFEM_USE_RAJA. However, given that would require including MFEM's config header within Axom's, i figured itd be safer to skip the check and always set CAMP_USE_PLATFORM_DEFAULT_STREAM if Axom is built with MFEM.

@chapman39 chapman39 self-assigned this Jun 25, 2026
@chapman39 chapman39 added bug Something isn't working TPL Issues related to Axom's third party libraries labels Jun 25, 2026
@adayton1

adayton1 commented Jun 25, 2026

Copy link
Copy Markdown
Member

I do not agree with this approach. We should really be pushing back against MFEM: mfem/mfem#5382. If you go down this path you are only making the problem worse.

@adayton1

Copy link
Copy Markdown
Member

MFEM is already working on a fix: mfem/mfem#5383

@chapman39

Copy link
Copy Markdown
Contributor Author

i agree. thank you @adayton1 . closing this pr

@chapman39 chapman39 closed this Jun 29, 2026
@chapman39 chapman39 deleted the bugfix/chapman39/define-camp-macro branch June 29, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working TPL Issues related to Axom's third party libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants