-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][Fusion][NoSTL] Use custom string-like class to represent kernel name #12393
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
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
4ddf70d
to
c1caf93
Compare
c1caf93
to
98c6636
Compare
98c6636
to
108abbb
Compare
108abbb
to
dd3fb96
Compare
…l names Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
dd3fb96
to
ec41714
Compare
@intel/llvm-gatekeepers This is also ready to land, thanks. |
I'd like the folks I've added to have a chance to look into this before merging. It might be that we'd want a more broad/uniform solution between fusion and the rest of sycl. |
Totally agree with @aelovikov-intel. This PR and #12193 from @bso-intel are trying to solve the same problem. There might be differences in requirements for the string replacement from Fusion and SYCL runtime, but we should avoid duplicating solutions. |
Ok, I'll investigate if we can use the class from #12193! |
@aelovikov-intel @bader After closer inspection, I think the use-case for our |
If |
Ah ok, yes, that should be possible. I see @victor-eds has already re-started the owning/view class discussion. I'll add that we'd want to have copy and move facilities for the owning variant to make it more convenient to use it a class member. |
@aelovikov-intel @bader Would you be OK with merging this PR as a temporary solution? We have a series of PRs building on top of each other and waiting for the design in #12193 to be settled would block our work. I would propose that we merge this PR, our teams gets involved in the design discussion on #12193 (as @victor-eds and @jopperm already have) and once #12193 settled on a suitable design, we will follow up with a PR to use WDYT? |
I'm ok with that... @bader ? |
Okay. @sommerlukas, @jopperm, I rely on you to ensure that this is a temporary solution. We don't want to end up having multiple implementations of "no-stl" strings across the project. |
Thanks all for the approval. I've filed an internal ticket to drop @intel/llvm-gatekeepers Please merge, thanks! |
Implement a custom string class (backed by a
DynArray<char>
, hence owning its memory) to represent kernel names on the fusion interface.This PR is part of a series of changes to remove uses of STL classes in the kernel fusion interface to prevent ABI issues in the future.