30
30
#include < pybind11/pybind11.h>
31
31
#include < pybind11/stl.h>
32
32
33
+ // utils extension header
34
+ #include " ext/common.hpp"
35
+
33
36
#include " dot.hpp"
34
37
#include " dot_common.hpp"
35
38
#include " dotc.hpp"
41
44
namespace blas_ns = dpnp::extensions::blas;
42
45
namespace py = pybind11;
43
46
namespace dot_ns = blas_ns::dot;
47
+
44
48
using dot_ns::dot_impl_fn_ptr_t ;
49
+ using ext::common::init_dispatch_vector;
45
50
46
51
// populate dispatch vectors and tables
47
52
void init_dispatch_vectors_tables (void )
@@ -64,7 +69,7 @@ PYBIND11_MODULE(_blas_impl, m)
64
69
using event_vecT = std::vector<sycl::event>;
65
70
66
71
{
67
- dot_ns::init_dot_dispatch_vector< blas_ns::DotContigFactory>(
72
+ init_dispatch_vector< dot_impl_fn_ptr_t , blas_ns::DotContigFactory>(
68
73
dot_dispatch_vector);
69
74
70
75
auto dot_pyapi = [&](sycl::queue &exec_q, const arrayT &src1,
@@ -82,7 +87,7 @@ PYBIND11_MODULE(_blas_impl, m)
82
87
}
83
88
84
89
{
85
- dot_ns::init_dot_dispatch_vector< blas_ns::DotcContigFactory>(
90
+ init_dispatch_vector< dot_impl_fn_ptr_t , blas_ns::DotcContigFactory>(
86
91
dotc_dispatch_vector);
87
92
88
93
auto dotc_pyapi = [&](sycl::queue &exec_q, const arrayT &src1,
@@ -101,7 +106,7 @@ PYBIND11_MODULE(_blas_impl, m)
101
106
}
102
107
103
108
{
104
- dot_ns::init_dot_dispatch_vector< blas_ns::DotuContigFactory>(
109
+ init_dispatch_vector< dot_impl_fn_ptr_t , blas_ns::DotuContigFactory>(
105
110
dotu_dispatch_vector);
106
111
107
112
auto dotu_pyapi = [&](sycl::queue &exec_q, const arrayT &src1,
0 commit comments