Skip to content

Add SArena: The_Arena wrapper using Gpu::freeAsync#4835

Merged
WeiqunZhang merged 5 commits intoAMReX-Codes:developmentfrom
AlexanderSinn:Add_SArena__The_Arena_wrapper_using_Gpu__freeAsync
Dec 9, 2025
Merged

Add SArena: The_Arena wrapper using Gpu::freeAsync#4835
WeiqunZhang merged 5 commits intoAMReX-Codes:developmentfrom
AlexanderSinn:Add_SArena__The_Arena_wrapper_using_Gpu__freeAsync

Conversation

@AlexanderSinn
Copy link
Copy Markdown
Member

@AlexanderSinn AlexanderSinn commented Dec 8, 2025

Summary

As discussed here #4804 (comment), this PR adds a new memory arena that is a wrapper for The_Arena but calls  freeAsync in its free function. The new arena, called SArena for stream-ordered arena, replaces the PArena in the implementation of The_Async_Arena.

Additional background

I have kept the profiling of the SArena for now. However, I'm not sure how useful it is since the CArena is already profiled.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@WeiqunZhang
Copy link
Copy Markdown
Member

/run-hpsf-gitlab-ci

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 9, 2025

@amrex-gitlab-ci-reporter
Copy link
Copy Markdown

GitLab CI 1341585 finished with status: success. See details at https://gitlab.spack.io/amrex/amrex/-/pipelines/1341585.

@WeiqunZhang WeiqunZhang merged commit a91e5d4 into AMReX-Codes:development Dec 9, 2025
73 checks passed
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.

2 participants