3030#include < pybind11/pybind11.h>
3131#include < pybind11/stl.h>
3232
33+ // utils extension header
34+ #include " ext/common.hpp"
35+
3336#include " dot.hpp"
3437#include " dot_common.hpp"
3538#include " dotc.hpp"
4144namespace blas_ns = dpnp::extensions::blas;
4245namespace py = pybind11;
4346namespace dot_ns = blas_ns::dot;
47+
4448using dot_ns::dot_impl_fn_ptr_t ;
49+ using ext::common::init_dispatch_vector;
4550
4651// populate dispatch vectors and tables
4752void init_dispatch_vectors_tables (void )
@@ -64,7 +69,7 @@ PYBIND11_MODULE(_blas_impl, m)
6469 using event_vecT = std::vector<sycl::event>;
6570
6671 {
67- dot_ns::init_dot_dispatch_vector< blas_ns::DotContigFactory>(
72+ init_dispatch_vector< dot_impl_fn_ptr_t , blas_ns::DotContigFactory>(
6873 dot_dispatch_vector);
6974
7075 auto dot_pyapi = [&](sycl::queue &exec_q, const arrayT &src1,
@@ -82,7 +87,7 @@ PYBIND11_MODULE(_blas_impl, m)
8287 }
8388
8489 {
85- dot_ns::init_dot_dispatch_vector< blas_ns::DotcContigFactory>(
90+ init_dispatch_vector< dot_impl_fn_ptr_t , blas_ns::DotcContigFactory>(
8691 dotc_dispatch_vector);
8792
8893 auto dotc_pyapi = [&](sycl::queue &exec_q, const arrayT &src1,
@@ -101,7 +106,7 @@ PYBIND11_MODULE(_blas_impl, m)
101106 }
102107
103108 {
104- dot_ns::init_dot_dispatch_vector< blas_ns::DotuContigFactory>(
109+ init_dispatch_vector< dot_impl_fn_ptr_t , blas_ns::DotuContigFactory>(
105110 dotu_dispatch_vector);
106111
107112 auto dotu_pyapi = [&](sycl::queue &exec_q, const arrayT &src1,
0 commit comments