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

CPU version of TagBox::buffer #1957

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

WeiqunZhang
Copy link
Member

Add a CPU version of TagBox::buffer. @MSABuschman reported in #1951 that
TagBox::buffer has been very slow since commit #1258 if the error buffer
size is large. The function was rewritten in #1258 to do the work on GPU.
In this PR, the old version is reintroduced for CPU.

Note that the current implementation is expected to have poor performance on
GPU if it has a very large error buffer. It's still not clear how we should
implement this function for GPU if a large error buffer is used.

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
  • are described in the proposed changes to the AMReX documentation, if appropriate

Add a CPU version of TagBox::buffer.  @MSABuschman reported in AMReX-Codes#1951 that
TagBox::buffer has been very slow since commit AMReX-Codes#1258 if the error buffer
size is large.  The function was rewritten in AMReX-Codes#1258 to do the work on GPU.
In this PR, the old version is reintroduced for CPU.

Note that the current implementation is expected to have poor performance on
GPU if it has a very large error buffer.  It's still not clear how we should
implement this function for GPU if a large error buffer is used.
@WeiqunZhang WeiqunZhang merged commit c409f9e into AMReX-Codes:development Apr 19, 2021
@WeiqunZhang WeiqunZhang deleted the tagbox_buffer branch April 19, 2021 20:30
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