Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][ESIMD] Add test for kernel defined in template function #1511

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

sarnex
Copy link

@sarnex sarnex commented Jan 13, 2023

Related to intel/llvm#7996

Signed-off-by: Sarnie, Nick [email protected]

@sarnex
Copy link
Author

sarnex commented Jan 13, 2023

/verify with intel/llvm#7996

Copy link

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

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

Thank you for the test.
I have only 2 comments:

  • PR needs clang-format fix

  • Not a requirement to change now, but a notice worse mentioning:
    If you have equal choice between using USM or BUFFERs, then please choose USM because GPU RT is going to drop support of stateful accesses soon; buffers/acc API should still be supported, but via some emulation method (acc.get_pointer() + stateless GenX intrin).

@sarnex
Copy link
Author

sarnex commented Jan 13, 2023

@v-klochkov Thanks!

The clang-format looks wrong acutally, it's breaking a comment:

diff --git a/SYCL/ESIMD/template.cpp b/SYCL/ESIMD/template.cpp
index 2a20ebe4..24ab5e98 100644
--- a/SYCL/ESIMD/template.cpp
+++ b/SYCL/ESIMD/template.cpp
@@ -1,4 +1,5 @@
-//==---------------- template.cpp  - DPC++ ESIMD on-device test -------------==//
+//==---------------- template.cpp  - DPC++ ESIMD on-device test
+//-------------==//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

I just modified vadd_1d.cpp instead of writing this myself, so I'll just leave it for now

@v-klochkov
Copy link

d_1d.cpp instead of writing this myself, so I'll just l

I think making the line 1 symbol shorter would solve the problem with clang-format

@sarnex
Copy link
Author

sarnex commented Jan 13, 2023

I think making the line 1 symbol shorter would solve the problem with clang-format

ah ok let me try thanks

@v-klochkov
Copy link

@v-klochkov Thanks!

The clang-format looks wrong acutally, it's breaking a comment:

diff --git a/SYCL/ESIMD/template.cpp b/SYCL/ESIMD/template.cpp
index 2a20ebe4..24ab5e98 100644
--- a/SYCL/ESIMD/template.cpp
+++ b/SYCL/ESIMD/template.cpp
@@ -1,4 +1,5 @@
-//==---------------- template.cpp  - DPC++ ESIMD on-device test -------------==//
+//==---------------- template.cpp  - DPC++ ESIMD on-device test
+//-------------==//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

I just modified vadd_1d.cpp instead of writing this myself, so I'll just leave it for now

Please keep this test as a separate one. vadd_1d.cpp is known as one of most trivial tests that always worked and perhaps will.

Co-authored-by: Vyacheslav Klochkov <[email protected]>
@sarnex
Copy link
Author

sarnex commented Jan 13, 2023

Please keep this test as a separate one. vadd_1d.cpp is known as one of most trivial tests that always worked and perhaps will.

Sorry, I mean this test is based on that one. That file is not modified.

@v-klochkov
Copy link

/verify with intel/llvm#7996

@v-klochkov
Copy link

@sarnex - please click 'Ready for review' when you think it is ready.

@sarnex sarnex marked this pull request as ready for review January 17, 2023 14:22
@sarnex sarnex requested a review from a team as a code owner January 17, 2023 14:22
@sarnex
Copy link
Author

sarnex commented Jan 17, 2023

@v-klochkov Done, whoops

@bader bader requested a review from v-klochkov January 18, 2023 04:08
@v-klochkov
Copy link

The new test expectedly failed without the fix in ESIMD headers and passed with it (Jenkins/llvm-test-suite)
Merging now.

@v-klochkov v-klochkov merged commit 18e3fd8 into intel:intel Jan 18, 2023
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…#1511)

* [SYCL][ESIMD] Add test for kernel defined in template function

Signed-off-by: Sarnie, Nick <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…/llvm-test-suite#1511)

* [SYCL][ESIMD] Add test for kernel defined in template function

Signed-off-by: Sarnie, Nick <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants