Skip to content

[SYCL][Scheduler] Refactor data transfer scheduler commands #830

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

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

romanovvlad
Copy link
Contributor

@romanovvlad romanovvlad commented Nov 13, 2019

Refactored update requirment, map and unmap commands to enable future optimizations of host memory allocations.

Signed-off-by: Vlad Romanov [email protected]

@bader
Copy link
Contributor

bader commented Nov 13, 2019

Typo in the commit message: requirment -> requirement.
Could you also provide more context of the problem you are trying to solve, please?

@romanovvlad
Copy link
Contributor Author

Refactored update requirment, map and unmap commands to take host
pointer instead of requirement.

Signed-off-by: Vlad Romanov [email protected]

I'm planning

you also provide more context

The change makes map, unmap and other commands more flexible so they can be used not only for situations when we have host accessor which we need to initialize with host ptr, but for doing map/unmap in cases when we can/must avoid copying which would require additional memory allocation on the host.
Yes this is a change extracted from this #724 PR.

@bader bader changed the title [SYCL][Refactoring] Change commands to take host ptr [SYCL][Scheduler] Refactor data transfer scheduler commands Nov 14, 2019
@bader
Copy link
Contributor

bader commented Nov 14, 2019

you also provide more context

The change makes map, unmap and other commands more flexible so they can be used not only for situations when we have host accessor which we need to initialize with host ptr, but for doing map/unmap in cases when we can/must avoid copying which would require additional memory allocation on the host.
Yes this is a change extracted from this #724 PR.

Thanks.
I've updated PR title and description based on your clarification. It would be great if commit message provides more details too.

Copy link
Contributor

@sergey-semenov sergey-semenov left a comment

Choose a reason for hiding this comment

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

LGTM aside from the commit message remark made by @bader and a minor nitpick

@romanovvlad romanovvlad force-pushed the private/vromanov/CommandsRefactoring1 branch from a2f5ec5 to 20fad3d Compare November 14, 2019 14:10
The patch makes transfer commands such as map and unmap more flexible.
Now they can be used not only for situations when we have host accessor
which we need to initialize with host ptr, but for doing map/unmap in
cases when we can/must avoid copying which would require additional
memory allocation on the host.

Signed-off-by: Vlad Romanov <[email protected]>
@romanovvlad romanovvlad force-pushed the private/vromanov/CommandsRefactoring1 branch from 20fad3d to a9e613c Compare November 14, 2019 20:03
@romanovvlad
Copy link
Contributor Author

refactored MemCpyCommandHost in the same way

@bader bader merged commit c514d25 into intel:sycl Nov 15, 2019
vmaksimo pushed a commit to vmaksimo/llvm that referenced this pull request Nov 30, 2020
* Align with llvm.org on sret/byval parameter attribute types

With the latest community changes, the StructRet/ByVal parameter
attributes are now required to have a type. Fix the build by:
1. updating the LIT IR to match this policy;
2. adding correct attribute types in backwards translation.

Signed-off-by: Artem Gindinson <[email protected]>
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.

3 participants