Skip to content

Commit 2fc9293

Browse files
committed
py::dtype requies to include <pybind11/numpy.h>
1 parent 8185761 commit 2fc9293

26 files changed

+76
-5
lines changed

dpnp/backend/extensions/common/ext/details/common_internal.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030

3131
#include <algorithm>
3232

33+
#include <pybind11/numpy.h>
34+
#include <pybind11/pybind11.h>
35+
3336
#include "ext/common.hpp"
3437
#include "utils/type_dispatch.hpp"
35-
#include <pybind11/pybind11.h>
3638

3739
namespace dpctl_td_ns = dpctl::tensor::type_dispatch;
3840

dpnp/backend/extensions/elementwise_functions/elementwise_functions.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
#include <utility>
3535
#include <vector>
3636

37+
#include <pybind11/numpy.h>
3738
#include <pybind11/pybind11.h>
39+
3840
#include <sycl/sycl.hpp>
3941

4042
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/elementwise_functions/elementwise_functions_type_utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
// THE POSSIBILITY OF SUCH DAMAGE.
2727
//*****************************************************************************
2828

29+
#include <pybind11/numpy.h>
2930
#include <pybind11/pybind11.h>
31+
3032
#include <sycl/sycl.hpp>
3133

3234
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/bitwise_count.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
#include <type_traits>
3131
#include <vector>
3232

33+
#include <pybind11/numpy.h>
34+
#include <pybind11/pybind11.h>
35+
3336
#include <sycl/sycl.hpp>
3437

3538
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/degrees.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include <type_traits>
3030
#include <vector>
3131

32+
#include <pybind11/numpy.h>
33+
#include <pybind11/pybind11.h>
34+
3235
#include <sycl/sycl.hpp>
3336

3437
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/divmod.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
#include <type_traits>
3131
#include <vector>
3232

33+
#include <pybind11/numpy.h>
34+
#include <pybind11/pybind11.h>
35+
3336
#include <sycl/sycl.hpp>
3437

3538
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/erf_funcs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include <type_traits>
3030
#include <vector>
3131

32+
#include <pybind11/numpy.h>
33+
#include <pybind11/pybind11.h>
34+
3235
#include <sycl/sycl.hpp>
3336

3437
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/fabs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include <type_traits>
3030
#include <vector>
3131

32+
#include <pybind11/numpy.h>
33+
#include <pybind11/pybind11.h>
34+
3235
#include <sycl/sycl.hpp>
3336

3437
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/fix.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include <type_traits>
3030
#include <vector>
3131

32+
#include <pybind11/numpy.h>
33+
#include <pybind11/pybind11.h>
34+
3235
#include <sycl/sycl.hpp>
3336

3437
#include "dpnp4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/float_power.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
#include <type_traits>
3131
#include <vector>
3232

33+
#include <pybind11/numpy.h>
34+
#include <pybind11/pybind11.h>
35+
3336
#include <sycl/sycl.hpp>
3437

3538
#include "dpnp4pybind11.hpp"

0 commit comments

Comments
 (0)