@@ -27,7 +27,7 @@ using AliasType = float;
2727
2828template <typename T>
2929SYCL_EXT_ONEAPI_FUNCTION_PROPERTY ((syclexp::nd_range_kernel<1 >))
30- void tempalted_func (T start, T *ptr) {
30+ void templated_func (T start, T *ptr) {
3131 size_t id = syclext::this_work_item::get_nd_item<1 >().get_global_linear_id ();
3232}
3333
@@ -40,13 +40,13 @@ void templated_func_uses_id(sycl::id<1> idx, T *ptr) {
4040
4141template <typename T = TestStruct>
4242SYCL_EXT_ONEAPI_FUNCTION_PROPERTY ((syclexp::nd_range_kernel<1 >))
43- void tempalted_func_with_default_type (T start, T *ptr) {
43+ void templated_func_with_default_type (T start, T *ptr) {
4444 size_t id = syclext::this_work_item::get_nd_item<1 >().get_global_linear_id ();
4545}
4646
4747template <typename T, class Y >
4848SYCL_EXT_ONEAPI_FUNCTION_PROPERTY ((syclexp::nd_range_kernel<1 >))
49- void tempalted_func_with_different_types (T *ptr1, Y *ptr2) {
49+ void templated_func_with_different_types (T *ptr1, Y *ptr2) {
5050 size_t id = syclext::this_work_item::get_nd_item<1 >().get_global_linear_id ();
5151}
5252
@@ -87,64 +87,64 @@ static void call_kernel_code_with_different_types(sycl::queue &q,
8787}
8888
8989template <typename T>
90- void test_tempalted_func (sycl::queue &q, sycl::context &ctxt) {
90+ void test_templated_func (sycl::queue &q, sycl::context &ctxt) {
9191 // Get a kernel bundle that contains the free function kernel
92- // "tempalted_func ".
92+ // "templated_func ".
9393 auto exe_bndl =
94- syclexp::get_kernel_bundle<tempalted_func <T>,
94+ syclexp::get_kernel_bundle<templated_func <T>,
9595 sycl::bundle_state::executable>(ctxt);
96- // Get a kernel object for the "tempalted_func " function from that bundle.
97- sycl::kernel k_tempalted_func =
98- exe_bndl.template ext_oneapi_get_kernel <tempalted_func <T>>();
99- call_kernel_code<T>(q, k_tempalted_func );
96+ // Get a kernel object for the "templated_func " function from that bundle.
97+ sycl::kernel k_templated_func =
98+ exe_bndl.template ext_oneapi_get_kernel <templated_func <T>>();
99+ call_kernel_code<T>(q, k_templated_func );
100100}
101101
102102template <typename T>
103103void test_templated_func_with_id (sycl::queue &q, sycl::context &ctxt) {
104104 auto exe_bndl =
105105 syclexp::get_kernel_bundle<templated_func_uses_id<T>,
106106 sycl::bundle_state::executable>(ctxt);
107- sycl::kernel k_tempalted_func =
107+ sycl::kernel k_templated_func =
108108 exe_bndl.template ext_oneapi_get_kernel <templated_func_uses_id<T>>();
109- call_kernel_code_with_id<T>(q, k_tempalted_func );
109+ call_kernel_code_with_id<T>(q, k_templated_func );
110110}
111111
112112template <typename T = TestStruct>
113113void test_templated_func_with_default_type (sycl::queue &q,
114114 sycl::context &ctxt) {
115115 auto exe_bndl =
116- syclexp::get_kernel_bundle<tempalted_func_with_default_type <T>,
116+ syclexp::get_kernel_bundle<templated_func_with_default_type <T>,
117117 sycl::bundle_state::executable>(ctxt);
118- sycl::kernel k_tempalted_func = exe_bndl.template ext_oneapi_get_kernel <
119- tempalted_func_with_default_type <T>>();
120- call_kernel_code<T>(q, k_tempalted_func );
118+ sycl::kernel k_templated_func = exe_bndl.template ext_oneapi_get_kernel <
119+ templated_func_with_default_type <T>>();
120+ call_kernel_code<T>(q, k_templated_func );
121121}
122122
123123template <typename T, class Y >
124124void test_templated_func_with_different_types (sycl::queue &q,
125125 sycl::context &ctxt) {
126126 auto exe_bndl =
127- syclexp::get_kernel_bundle<tempalted_func_with_different_types <T, Y>,
127+ syclexp::get_kernel_bundle<templated_func_with_different_types <T, Y>,
128128 sycl::bundle_state::executable>(ctxt);
129- sycl::kernel k_tempalted_func = exe_bndl.template ext_oneapi_get_kernel <
130- tempalted_func_with_different_types <T, Y>>();
131- call_kernel_code_with_different_types<T, Y>(q, k_tempalted_func );
129+ sycl::kernel k_templated_func = exe_bndl.template ext_oneapi_get_kernel <
130+ templated_func_with_different_types <T, Y>>();
131+ call_kernel_code_with_different_types<T, Y>(q, k_templated_func );
132132}
133133
134134// TODO: Add tests to check accessors
135135
136136int main () {
137137 sycl::queue q;
138138 sycl::context ctxt = q.get_context ();
139- test_tempalted_func <TestClass>(q, ctxt);
140- test_tempalted_func <TestStruct>(q, ctxt);
141- test_tempalted_func <free_functions::tests::TestClass>(q, ctxt);
142- test_tempalted_func <free_functions::tests::TestStruct>(q, ctxt);
143- test_tempalted_func <AliasType>(q, ctxt);
144- test_tempalted_func <sycl::id<1 >>(q, ctxt);
145- test_tempalted_func <sycl::range<2 >>(q, ctxt);
146- test_tempalted_func <sycl::marray<int , 4 >>(q, ctxt);
147- test_tempalted_func <sycl::vec<int , 4 >>(q, ctxt);
139+ test_templated_func <TestClass>(q, ctxt);
140+ test_templated_func <TestStruct>(q, ctxt);
141+ test_templated_func <free_functions::tests::TestClass>(q, ctxt);
142+ test_templated_func <free_functions::tests::TestStruct>(q, ctxt);
143+ test_templated_func <AliasType>(q, ctxt);
144+ test_templated_func <sycl::id<1 >>(q, ctxt);
145+ test_templated_func <sycl::range<2 >>(q, ctxt);
146+ test_templated_func <sycl::marray<int , 4 >>(q, ctxt);
147+ test_templated_func <sycl::vec<int , 4 >>(q, ctxt);
148148 test_templated_func_with_default_type<free_functions::tests::TestClass>(q,
149149 ctxt);
150150 test_templated_func_with_default_type (q, ctxt);
0 commit comments