@@ -371,15 +371,26 @@ TEST_P(TestSYCLKernelBundleFromSource, CheckCreateFromSYCLSource)
371
371
{
372
372
ASSERT_TRUE (KBRef != nullptr );
373
373
ASSERT_TRUE (DPCTLKernelBundle_HasSyclKernel (KBRef, " vector_add" ));
374
+ // DPC++ version 2025.1 supports compilation of SYCL template kernels,
375
+ // but does not yet support referencing them with the unmangled name.
374
376
ASSERT_TRUE (
375
- DPCTLKernelBundle_HasSyclKernel (KBRef, " vector_add_template<int>" ));
377
+ DPCTLKernelBundle_HasSyclKernel (KBRef, " vector_add_template<int>" ) ||
378
+ DPCTLKernelBundle_HasSyclKernel (
379
+ KBRef, " _Z33__sycl_kernel_vector_add_templateIiEvPT_S1_S1_" ));
376
380
}
377
381
378
382
TEST_P (TestSYCLKernelBundleFromSource, CheckGetKernelSYCLSource)
379
383
{
380
384
auto AddKernel = DPCTLKernelBundle_GetSyclKernel (KBRef, " vector_add" );
381
385
auto AxpyKernel =
382
386
DPCTLKernelBundle_GetSyclKernel (KBRef, " vector_add_template<int>" );
387
+ if (AxpyKernel == nullptr ) {
388
+ // DPC++ version 2025.1 supports compilation of SYCL template kernels,
389
+ // but does not yet support referencing them with the unmangled name.
390
+ AxpyKernel = DPCTLKernelBundle_GetSyclKernel (
391
+ KBRef, " _Z33__sycl_kernel_vector_add_templateIiEvPT_S1_S1_" );
392
+ }
393
+
383
394
ASSERT_TRUE (AddKernel != nullptr );
384
395
ASSERT_TRUE (AxpyKernel != nullptr );
385
396
DPCTLKernel_Delete (AddKernel);
0 commit comments