-
Notifications
You must be signed in to change notification settings - Fork 10
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
Small fixes to COPY_DATA
#22
Conversation
So what you mean is that we are spending a lot of time in the nested SELECT CASE constructs ? If so, we should probably take some more radical action, like storing a pointer to the copy function in the object itself. See for instance : https://github.com/pmarguinaud/field_api/pull/new/naan-copy-data-fix |
Yes I think there was definitely an overhead for the nested |
Hi @pmarguinaud, I tested your |
Hi @pmarguinaud. Thanks again for contributing the fix. Could I please merge your contribution to this PR (and add another small commit on top) so we can close this soon? |
Hello Ahmad, Yes please merge my branch in your PR. Regards |
08eaf2e
to
14eb55b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks both for fixing this!
This PR applies two small fixes to
COPY_DATA
:ACC_DEVICEPTR
inCOPY_DIM_CONTIGUOUS
is replaced withacc host_data
to align it withCOPY_2D
SELECT CASE
. This is the best possible scenario for data transfers and we should check this first rather than at the end.The last point resulted in a more than 10% gain in data transfer speeds for CLOUDSC