Skip to content

Commit

Permalink
Include stdexcept in all files using stdlib exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Mar 18, 2024
1 parent 388e11b commit f97544c
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/src/copying/copy.cu
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <thrust/distance.h>
#include <thrust/iterator/counting_iterator.h>

#include <stdexcept>

namespace cudf {
namespace detail {
namespace {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/copying/copy_range.cu
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <thrust/iterator/constant_iterator.h>

#include <memory>
#include <stdexcept>

namespace {
template <typename T>
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/copying/get_element.cu
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

#include <rmm/cuda_stream_view.hpp>

#include <stdexcept>

namespace cudf {
namespace detail {

Expand Down
2 changes: 2 additions & 0 deletions cpp/src/copying/scatter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#include <thrust/scatter.h>
#include <thrust/sequence.h>

#include <stdexcept>

namespace cudf {
namespace detail {
namespace {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/copying/shift.cu
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <algorithm>
#include <iterator>
#include <memory>
#include <stdexcept>

namespace cudf {
namespace {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/copying/slice.cu
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <thrust/iterator/transform_iterator.h>

#include <algorithm>
#include <stdexcept>

namespace cudf {
namespace detail {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/copying/split.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <rmm/cuda_stream_view.hpp>

#include <algorithm>
#include <stdexcept>

namespace cudf {
namespace detail {
Expand Down
2 changes: 2 additions & 0 deletions cpp/tests/bitmask/bitmask_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <rmm/device_buffer.hpp>
#include <rmm/device_uvector.hpp>

#include <stdexcept>

struct BitmaskUtilitiesTest : public cudf::test::BaseFixture {};

TEST_F(BitmaskUtilitiesTest, StateNullCount)
Expand Down
2 changes: 2 additions & 0 deletions cpp/tests/copying/copy_range_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>

#include <stdexcept>

auto all_valid = [](cudf::size_type row) { return true; };
auto even_valid = [](cudf::size_type row) { return (row % 2 == 0); };

Expand Down
2 changes: 2 additions & 0 deletions cpp/tests/copying/copy_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_iterator.h>

#include <stdexcept>

template <typename T>
struct CopyTest : public cudf::test::BaseFixture {};

Expand Down
2 changes: 2 additions & 0 deletions cpp/tests/copying/get_value_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

#include <thrust/iterator/counting_iterator.h>

#include <stdexcept>

using namespace cudf::test::iterators;

template <typename T>
Expand Down
2 changes: 2 additions & 0 deletions cpp/tests/copying/scatter_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <cudf/scalar/scalar_factories.hpp>
#include <cudf/stream_compaction.hpp>

#include <stdexcept>

class ScatterUntypedTests : public cudf::test::BaseFixture {};

// Throw logic error if scatter map is longer than source
Expand Down
1 change: 1 addition & 0 deletions cpp/tests/copying/shift_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <limits>
#include <memory>
#include <stdexcept>

using TestTypes = cudf::test::Types<int32_t>;

Expand Down
1 change: 1 addition & 0 deletions cpp/tests/copying/slice_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <cudf/utilities/type_dispatcher.hpp>
#include <cudf/wrappers/timestamps.hpp>

#include <stdexcept>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions cpp/tests/copying/split_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>

#include <stdexcept>
#include <string>
#include <vector>

Expand Down

0 comments on commit f97544c

Please sign in to comment.