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

Clean up trailing whitespace so as to reduce noise in #246. #255

Merged
merged 1 commit into from
Nov 8, 2017

Conversation

AlexVlx
Copy link
Contributor

@AlexVlx AlexVlx commented Nov 8, 2017

No description provided.

@mangupta mangupta merged commit ebd58d4 into ROCm:master Nov 8, 2017
@AlexVlx AlexVlx deleted the remove_some_trailing_whitespace branch November 9, 2017 02:27
zhaozhangjian added a commit to zhaozhangjian/HIP that referenced this pull request Jun 24, 2021
Synchronize memory copy API - hipMemcpy() issues h2d_copy() and
d2h_copy(), which use userptr as a staging buffer. For the memory copy
between this staging buffer and device memory, device agent is currently
passed as the argument for both the src and dst agents, which means D2D
copy to ROCR and is executed by blit kernel. Blit kernel uses the cache
of userptr (if hit) on device, which may cause memory coherency problem
if the userptr on host is changed and the device is blind to the change.

This change passes host agent and device agent as arguments in
d2h_copy() and h2d_copy(), which makes this memory copy be executed on
SDMA in ROCR. SDMA ignores the cache of userptr on device and guarantees
memory coherency.

Signed-off-by: Zhangjian Zhao <[email protected]>
Change-Id: I7441530e515a2ac8d299f55b89d54fbaccfa986f
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