File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
sycl/test-e2e/FreeFunctionKernels Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,18 @@ void F<float>(int X) {
9393 volatile float Y = static_cast <float >(X);
9494}
9595
96+ template <typename ... Args>
97+ SYCL_EXT_ONEAPI_FUNCTION_PROPERTY (
98+ (ext::oneapi::experimental::single_task_kernel))
99+ void variadic_templated(Args... args) {}
100+
101+ template <>
102+ SYCL_EXT_ONEAPI_FUNCTION_PROPERTY (
103+ (ext::oneapi::experimental::single_task_kernel))
104+ void variadic_templated<double>(double b) {
105+ b = 20 .0f ;
106+ }
107+
96108template <auto *Func, typename T> void test_func () {
97109 queue Q;
98110 kernel_bundle bundle =
@@ -161,6 +173,7 @@ int main() {
161173 test_func_custom_type<A::B::C::TestClass>();
162174 test_func<F<float >, float >();
163175 test_func<F<uint32_t >, uint32_t >();
176+ test_func<variadic_templated<double >, double >();
164177 test_func<sum1<3 , float >, float >();
165178 test_accessor ();
166179 test_shared ();
You can’t perform that action at this time.
0 commit comments