Skip to content

Commit 158cd6a

Browse files
Add include <stdexcept> for std::runtime_error, reordered headers
1 parent 5433de2 commit 158cd6a

File tree

8 files changed

+27
-15
lines changed

8 files changed

+27
-15
lines changed

dpctl/tensor/libtensor/source/linalg_functions/dot.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@
2222
/// This file defines functions of dpctl.tensor._tensor_impl extensions
2323
//===--------------------------------------------------------------------===//
2424

25-
#include "dpctl4pybind11.hpp"
2625
#include <cstdint>
27-
#include <pybind11/numpy.h>
28-
#include <pybind11/pybind11.h>
29-
#include <pybind11/stl.h>
26+
#include <stdexcept>
3027
#include <sycl/sycl.hpp>
3128
#include <utility>
3229
#include <vector>
3330

31+
#include "dpctl4pybind11.hpp"
32+
#include <pybind11/numpy.h>
33+
#include <pybind11/pybind11.h>
34+
#include <pybind11/stl.h>
35+
3436
#include "dot.hpp"
3537
#include "dot_atomic_support.hpp"
3638
#include "dot_dispatch.hpp"

dpctl/tensor/libtensor/source/reductions/reduction_over_axis.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include <algorithm>
2929
#include <cstdint>
30+
#include <stdexcept>
3031
#include <sycl/sycl.hpp>
3132
#include <type_traits>
3233
#include <utility>

dpctl/tensor/libtensor/source/repeat.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@
2222
/// This file defines functions of dpctl.tensor._tensor_impl extensions
2323
//===--------------------------------------------------------------------===//
2424

25-
#include "dpctl4pybind11.hpp"
2625
#include <cstdint>
2726
#include <limits>
28-
#include <pybind11/pybind11.h>
29-
#include <pybind11/stl.h>
27+
#include <stdexcept>
3028
#include <sycl/sycl.hpp>
3129
#include <utility>
3230
#include <vector>
3331

32+
#include "dpctl4pybind11.hpp"
33+
#include <pybind11/pybind11.h>
34+
#include <pybind11/stl.h>
35+
3436
#include "kernels/repeat.hpp"
3537
#include "simplify_iteration_space.hpp"
3638
#include "utils/memory_overlap.hpp"

dpctl/tensor/libtensor/source/sorting/searchsorted.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
/// extension.
2323
//===--------------------------------------------------------------------===//
2424

25+
#include <stdexcept>
2526
#include <sycl/sycl.hpp>
2627
#include <utility>
2728
#include <vector>
2829

30+
#include "dpctl4pybind11.hpp"
2931
#include <pybind11/pybind11.h>
3032
#include <pybind11/stl.h>
3133

@@ -35,7 +37,6 @@
3537
#include "utils/sycl_alloc_utils.hpp"
3638
#include "utils/type_dispatch.hpp"
3739
#include "utils/type_utils.hpp"
38-
#include <dpctl4pybind11.hpp>
3940

4041
#include "rich_comparisons.hpp"
4142
#include "simplify_iteration_space.hpp"

dpctl/tensor/libtensor/source/sorting/sort.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
/// extension.
2323
//===--------------------------------------------------------------------===//
2424

25+
#include <sycl/sycl.hpp>
26+
2527
#include "dpctl4pybind11.hpp"
2628
#include <pybind11/pybind11.h>
2729
#include <pybind11/stl.h>
28-
#include <sycl/sycl.hpp>
2930

3031
#include "utils/math_utils.hpp"
3132
#include "utils/memory_overlap.hpp"

dpctl/tensor/libtensor/source/triul_ctor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/// This file defines functions of dpctl.tensor._tensor_impl extensions
2323
//===--------------------------------------------------------------------===//
2424

25+
#include <stdexcept>
2526
#include <sycl/sycl.hpp>
2627
#include <utility>
2728
#include <vector>

dpctl/tensor/libtensor/source/where.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@
2323
/// dpctl.tensor.where
2424
//===----------------------------------------------------------------------===//
2525

26-
#include "dpctl4pybind11.hpp"
2726
#include <complex>
2827
#include <cstdint>
28+
#include <stdexcept>
29+
#include <sycl/sycl.hpp>
30+
#include <utility>
31+
32+
#include "dpctl4pybind11.hpp"
2933
#include <pybind11/complex.h>
3034
#include <pybind11/pybind11.h>
3135
#include <pybind11/stl.h>
32-
#include <sycl/sycl.hpp>
33-
#include <utility>
3436

3537
#include "kernels/where.hpp"
3638
#include "simplify_iteration_space.hpp"

dpctl/tensor/libtensor/source/zeros_ctor.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
/// This file defines functions of dpctl.tensor._tensor_impl extensions
2323
//===--------------------------------------------------------------------===//
2424

25-
#include "dpctl4pybind11.hpp"
2625
#include <complex>
27-
#include <pybind11/complex.h>
28-
#include <pybind11/pybind11.h>
26+
#include <stdexcept>
2927
#include <sycl/sycl.hpp>
3028
#include <utility>
3129
#include <vector>
3230

31+
#include "dpctl4pybind11.hpp"
32+
#include <pybind11/complex.h>
33+
#include <pybind11/pybind11.h>
34+
3335
#include "kernels/constructors.hpp"
3436
#include "utils/output_validation.hpp"
3537
#include "utils/type_dispatch.hpp"

0 commit comments

Comments
 (0)