@@ -90,34 +90,6 @@ PYBIND11_MODULE(_vm_impl, m)
90
90
py::arg (" dst" ));
91
91
}
92
92
93
- // UnaryUfunc: ==== Cos(x) ====
94
- {
95
- vm_ext::init_ufunc_dispatch_vector<unary_impl_fn_ptr_t ,
96
- vm_ext::CosContigFactory>(
97
- cos_dispatch_vector);
98
-
99
- auto cos_pyapi = [&](sycl::queue exec_q, arrayT src, arrayT dst,
100
- const event_vecT &depends = {}) {
101
- return vm_ext::unary_ufunc (exec_q, src, dst, depends,
102
- cos_dispatch_vector);
103
- };
104
- m.def (" _cos" , cos_pyapi,
105
- " Call `cos` function from OneMKL VM library to compute "
106
- " cosine of vector elements" ,
107
- py::arg (" sycl_queue" ), py::arg (" src" ), py::arg (" dst" ),
108
- py::arg (" depends" ) = py::list ());
109
-
110
- auto cos_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
111
- arrayT dst) {
112
- return vm_ext::need_to_call_unary_ufunc (exec_q, src, dst,
113
- cos_dispatch_vector);
114
- };
115
- m.def (" _mkl_cos_to_call" , cos_need_to_call_pyapi,
116
- " Check input arguments to answer if `cos` function from "
117
- " OneMKL VM library can be used" ,
118
- py::arg (" sycl_queue" ), py::arg (" src" ), py::arg (" dst" ));
119
- }
120
-
121
93
// UnaryUfunc: ==== Conj(x) ====
122
94
{
123
95
vm_ext::init_ufunc_dispatch_vector<unary_impl_fn_ptr_t ,
@@ -146,6 +118,34 @@ PYBIND11_MODULE(_vm_impl, m)
146
118
py::arg (" sycl_queue" ), py::arg (" src" ), py::arg (" dst" ));
147
119
}
148
120
121
+ // UnaryUfunc: ==== Cos(x) ====
122
+ {
123
+ vm_ext::init_ufunc_dispatch_vector<unary_impl_fn_ptr_t ,
124
+ vm_ext::CosContigFactory>(
125
+ cos_dispatch_vector);
126
+
127
+ auto cos_pyapi = [&](sycl::queue exec_q, arrayT src, arrayT dst,
128
+ const event_vecT &depends = {}) {
129
+ return vm_ext::unary_ufunc (exec_q, src, dst, depends,
130
+ cos_dispatch_vector);
131
+ };
132
+ m.def (" _cos" , cos_pyapi,
133
+ " Call `cos` function from OneMKL VM library to compute "
134
+ " cosine of vector elements" ,
135
+ py::arg (" sycl_queue" ), py::arg (" src" ), py::arg (" dst" ),
136
+ py::arg (" depends" ) = py::list ());
137
+
138
+ auto cos_need_to_call_pyapi = [&](sycl::queue exec_q, arrayT src,
139
+ arrayT dst) {
140
+ return vm_ext::need_to_call_unary_ufunc (exec_q, src, dst,
141
+ cos_dispatch_vector);
142
+ };
143
+ m.def (" _mkl_cos_to_call" , cos_need_to_call_pyapi,
144
+ " Check input arguments to answer if `cos` function from "
145
+ " OneMKL VM library can be used" ,
146
+ py::arg (" sycl_queue" ), py::arg (" src" ), py::arg (" dst" ));
147
+ }
148
+
149
149
// UnaryUfunc: ==== Ln(x) ====
150
150
{
151
151
vm_ext::init_ufunc_dispatch_vector<unary_impl_fn_ptr_t ,
0 commit comments