Skip to content

Commit 22c4b0c

Browse files
committed
Add unused arg to template kernel in E2E test
Signed-off-by: Julian Oppermann <[email protected]>
1 parent f2f9899 commit 22c4b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test-e2e/KernelCompiler/kernel_compiler_sycl_jit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void ff_cp(int *ptr, int *unused) {
6868
// this name will be mangled
6969
template <typename T>
7070
SYCL_EXTERNAL SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((sycl::ext::oneapi::experimental::nd_range_kernel<1>))
71-
void ff_templated(T *ptr) {
71+
void ff_templated(T *ptr, T *unused) {
7272
7373
sycl::nd_item<1> Item = sycl::ext::oneapi::this_work_item::get_nd_item<1>();
7474
@@ -158,7 +158,7 @@ int test_build_and_run() {
158158
// Instead, we can TEMPORARILY use the mangled name. Once demangling is
159159
// supported this might no longer work.
160160
sycl::kernel k2 =
161-
kbExe2.ext_oneapi_get_kernel("_Z26__sycl_kernel_ff_templatedIiEvPT_");
161+
kbExe2.ext_oneapi_get_kernel("_Z26__sycl_kernel_ff_templatedIiEvPT_S1_");
162162

163163
// Test the kernels.
164164
test_1(q, k, 37 + 5); // ff_cp seeds 37. AddEm will add 5 more.

0 commit comments

Comments
 (0)