Skip to content

[SYCL] Introduce interop handle for host task #1747

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 13 commits into from
Jun 9, 2020

Conversation

s-kanaev
Copy link
Contributor

@s-kanaev s-kanaev commented May 25, 2020

This patch is number one in series of patches for interop part of host task.
This patch introduces interop_handle as described by proposal [1].

[1] https://github.com/codeplaysoftware/standards-proposals/blob/master/host_task/host_task.md

Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
@s-kanaev s-kanaev requested a review from a team as a code owner May 25, 2020 12:03
@s-kanaev s-kanaev requested a review from sergey-semenov May 25, 2020 12:03
@s-kanaev s-kanaev mentioned this pull request May 25, 2020
3 tasks
@s-kanaev s-kanaev requested a review from Ruyk May 25, 2020 12:04
Sergey Kanaev added 3 commits May 27, 2020 11:51
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
@s-kanaev s-kanaev requested a review from KarachunIvan May 27, 2020 11:55
@s-kanaev
Copy link
Contributor Author

@steffenlarsen, @StuartDAdams Sorry, somehow I can't re-request review from you.

@sergey-semenov ping

Sergey Kanaev added 5 commits May 29, 2020 18:30
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
@s-kanaev s-kanaev requested a review from sergey-semenov June 1, 2020 14:37
@sergey-semenov
Copy link
Contributor

LGTM aside from the reinterpret_cast/include cycle issue.

bader pushed a commit that referenced this pull request Jun 2, 2020
This changes is required for #1747.

Suppose we add `#include <CL/sycl/accessor.hpp>` in `interop_handle.hpp` . Furthermore we will add `#include <CL/sycl/interop_handle.hpp>` to `include/CL/sycl/handler.hpp`. Then, we will have the following cycle (here `->` says `which includes`):

```
handler.hpp -> interop_handle.hpp -> accessor.hpp -> handler.hpp (cycle here)
```

Also, this patch eliminates use of `reinterpret_cast` (either as it is or C-style) when converting `accessor` to `AccessorBaseHost` at host.
Sergey Kanaev added 3 commits June 2, 2020 13:06
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
@bader
Copy link
Contributor

bader commented Jun 3, 2020

@s-kanaev, please, fix CI failures.

@bader
Copy link
Contributor

bader commented Jun 5, 2020

@s-kanaev, please, fix CI failures.

Ping.

@bader bader merged commit e9153f0 into intel:sycl Jun 9, 2020
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Jun 10, 2020
* upstream/sycl:
  [SYCL] Fix broken build after introduction USM to ocl headers (intel#1852)
  [SYCL][ESIMD] Implement "private globals" (file scope private vars)  in FE (intel#1756)
  [SYCL] Introduce interop handle for host task (intel#1747)
@s-kanaev s-kanaev deleted the private/s-kanaev/ht-interop-handle branch September 2, 2020 09:42
Fznamznon pushed a commit to Fznamznon/llvm that referenced this pull request Dec 5, 2022
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@a3fc26f
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.

6 participants