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

[WIP] Refactor the accessor implementation to be more device friendly #235

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

keryell
Copy link
Member

@keryell keryell commented Jan 10, 2019

The current accessor implementation relies on the usual easy detail::shared_ptr_implementation but requires some painful magical Clang rewriting of lambda captures to use drt::accessor instead.
Instead, make a new accessor implementation split in 2 parts, a simple one visible by the device and a heavy shepherd one to manage the accessed resource that will be optimized away by the device compiler in a simpler and natural way.
So make the runtime more complex, but the device compiler simpler.
This is a first step toward solving #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
SYCL C++ library
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

1 participant