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

Tpetra: add missing fence in WrappedDualView #8973

Merged
merged 2 commits into from
Apr 5, 2021

Conversation

tasmith4
Copy link
Contributor

@tasmith4 tasmith4 commented Apr 5, 2021

@trilinos/tpetra

When we get the host view of a WrappedDualView with OverwriteAll, a device kernel is potentially still changing values on the device view, but we don't care because we're overwriting them anyway. In UVM though, we need to wait to overwrite on host until device is done writing, because otherwise the things we write on host could be overwritten by the device kernel that hasn't finished yet.

Testing

The need for this change was exposed by an existing WrappedDualView test.

@tasmith4 tasmith4 added pkg: Tpetra AT: AUTOMERGE Causes the PR autotester to automatically merge the PR branch once approvals are completed labels Apr 5, 2021
@tasmith4 tasmith4 requested a review from kddevin April 5, 2021 18:55
@tasmith4 tasmith4 self-assigned this Apr 5, 2021
Copy link
Contributor

@kddevin kddevin left a comment

Choose a reason for hiding this comment

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

We will review with the team on Tuesday.

@kddevin kddevin merged commit 1aa9d70 into tpetraCrsRefactor Apr 5, 2021
@tasmith4 tasmith4 deleted the tpetra_WrappedDualViewFence branch June 20, 2021 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT: AUTOMERGE Causes the PR autotester to automatically merge the PR branch once approvals are completed pkg: Tpetra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants