From ff2d113a6d7db55d9322bac8fd1c26005b935cce Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 14 Apr 2022 06:38:35 -0700 Subject: [PATCH 1/5] Clean up C++ includes to use <> instead of "". --- cpp/benchmarks/io/orc/orc_writer.cpp | 2 +- cpp/benchmarks/sort/rank.cpp | 2 +- cpp/benchmarks/string/convert_durations.cpp | 14 +++++++------- cpp/include/cudf/detail/reduction_functions.hpp | 2 +- cpp/libcudf_kafka/src/kafka_callback.cpp | 2 +- cpp/libcudf_kafka/src/kafka_consumer.cpp | 2 +- cpp/src/merge/merge.cu | 2 +- cpp/src/structs/structs_column_view.cpp | 2 +- .../binaryop/binop-compiled-fixed_point-test.cpp | 2 +- cpp/tests/hash_map/map_test.cu | 2 +- cpp/tests/iterator/value_iterator_test_strings.cu | 8 +++++--- cpp/tests/partitioning/partition_test.cpp | 3 ++- 12 files changed, 23 insertions(+), 20 deletions(-) diff --git a/cpp/benchmarks/io/orc/orc_writer.cpp b/cpp/benchmarks/io/orc/orc_writer.cpp index 525c13af5c0..f61dac7677b 100644 --- a/cpp/benchmarks/io/orc/orc_writer.cpp +++ b/cpp/benchmarks/io/orc/orc_writer.cpp @@ -14,7 +14,6 @@ * limitations under the License. */ -#include "cudf/io/types.hpp" #include #include @@ -23,6 +22,7 @@ #include #include +#include // to enable, run cmake with -DBUILD_BENCHMARKS=ON diff --git a/cpp/benchmarks/sort/rank.cpp b/cpp/benchmarks/sort/rank.cpp index 22acb241f0b..c3c77ebd52f 100644 --- a/cpp/benchmarks/sort/rank.cpp +++ b/cpp/benchmarks/sort/rank.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "cudf/column/column_view.hpp" +#include #include #include diff --git a/cpp/benchmarks/string/convert_durations.cpp b/cpp/benchmarks/string/convert_durations.cpp index dc9a1e991b2..bf8dee9dcbd 100644 --- a/cpp/benchmarks/string/convert_durations.cpp +++ b/cpp/benchmarks/string/convert_durations.cpp @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -#include - +#include #include #include +#include #include #include #include #include +#include + +#include +#include + #include #include -#include "../fixture/benchmark_fixture.hpp" -#include "../synchronization/synchronization.hpp" -#include "cudf/column/column_view.hpp" -#include "cudf/wrappers/durations.hpp" class DurationsToString : public cudf::benchmark { }; diff --git a/cpp/include/cudf/detail/reduction_functions.hpp b/cpp/include/cudf/detail/reduction_functions.hpp index 3a6113e66ce..317e4d0cf47 100644 --- a/cpp/include/cudf/detail/reduction_functions.hpp +++ b/cpp/include/cudf/detail/reduction_functions.hpp @@ -17,9 +17,9 @@ #pragma once #include +#include #include -#include "cudf/lists/lists_column_view.hpp" #include namespace cudf { diff --git a/cpp/libcudf_kafka/src/kafka_callback.cpp b/cpp/libcudf_kafka/src/kafka_callback.cpp index 6b98747c145..79a40640627 100644 --- a/cpp/libcudf_kafka/src/kafka_callback.cpp +++ b/cpp/libcudf_kafka/src/kafka_callback.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "cudf_kafka/kafka_callback.hpp" +#include #include diff --git a/cpp/libcudf_kafka/src/kafka_consumer.cpp b/cpp/libcudf_kafka/src/kafka_consumer.cpp index 49e89a56e60..2ddaa9892da 100644 --- a/cpp/libcudf_kafka/src/kafka_consumer.cpp +++ b/cpp/libcudf_kafka/src/kafka_consumer.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "cudf_kafka/kafka_consumer.hpp" +#include #include diff --git a/cpp/src/merge/merge.cu b/cpp/src/merge/merge.cu index 01a94457b69..9c94a6220d6 100644 --- a/cpp/src/merge/merge.cu +++ b/cpp/src/merge/merge.cu @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -38,7 +39,6 @@ #include #include -#include "cudf/utilities/traits.hpp" #include #include diff --git a/cpp/src/structs/structs_column_view.cpp b/cpp/src/structs/structs_column_view.cpp index db9496f18be..0cd2aa68301 100644 --- a/cpp/src/structs/structs_column_view.cpp +++ b/cpp/src/structs/structs_column_view.cpp @@ -14,9 +14,9 @@ * limitations under the License. */ -#include "cudf/utilities/error.hpp" #include #include +#include namespace cudf { diff --git a/cpp/tests/binaryop/binop-compiled-fixed_point-test.cpp b/cpp/tests/binaryop/binop-compiled-fixed_point-test.cpp index 64462669f90..28df893aff1 100644 --- a/cpp/tests/binaryop/binop-compiled-fixed_point-test.cpp +++ b/cpp/tests/binaryop/binop-compiled-fixed_point-test.cpp @@ -20,13 +20,13 @@ #include #include #include +#include #include #include #include #include -#include "cudf/utilities/error.hpp" #include #include diff --git a/cpp/tests/hash_map/map_test.cu b/cpp/tests/hash_map/map_test.cu index d69aee57756..f42549514e6 100644 --- a/cpp/tests/hash_map/map_test.cu +++ b/cpp/tests/hash_map/map_test.cu @@ -23,12 +23,12 @@ #include #include +#include #include #include #include -#include "rmm/exec_policy.hpp" #include #include #include diff --git a/cpp/tests/iterator/value_iterator_test_strings.cu b/cpp/tests/iterator/value_iterator_test_strings.cu index 5bddbfbd4aa..43bc6803146 100644 --- a/cpp/tests/iterator/value_iterator_test_strings.cu +++ b/cpp/tests/iterator/value_iterator_test_strings.cu @@ -12,9 +12,11 @@ * or implied. See the License for the specific language governing permissions and limitations under * the License. */ -#include "cudf/detail/utilities/vector_factories.hpp" -#include "rmm/cuda_stream_view.hpp" -#include "rmm/device_uvector.hpp" +#include + +#include +#include + #include #include diff --git a/cpp/tests/partitioning/partition_test.cpp b/cpp/tests/partitioning/partition_test.cpp index 785af409c4c..da09299c197 100644 --- a/cpp/tests/partitioning/partition_test.cpp +++ b/cpp/tests/partitioning/partition_test.cpp @@ -15,14 +15,15 @@ */ #include #include +#include #include + #include #include #include #include #include -#include "cudf/sorting.hpp" template class PartitionTest : public cudf::test::BaseFixture { From 7e01f477a619911e74c9207d155a43b9b8783247 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 14 Apr 2022 09:16:02 -0500 Subject: [PATCH 2/5] clang-format --- cpp/benchmarks/string/convert_durations.cpp | 1 - cpp/tests/partitioning/partition_test.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/cpp/benchmarks/string/convert_durations.cpp b/cpp/benchmarks/string/convert_durations.cpp index bf8dee9dcbd..8af111d9a63 100644 --- a/cpp/benchmarks/string/convert_durations.cpp +++ b/cpp/benchmarks/string/convert_durations.cpp @@ -31,7 +31,6 @@ #include #include - class DurationsToString : public cudf::benchmark { }; template diff --git a/cpp/tests/partitioning/partition_test.cpp b/cpp/tests/partitioning/partition_test.cpp index da09299c197..3bb78feff89 100644 --- a/cpp/tests/partitioning/partition_test.cpp +++ b/cpp/tests/partitioning/partition_test.cpp @@ -24,7 +24,6 @@ #include #include - template class PartitionTest : public cudf::test::BaseFixture { using value_type = cudf::test::GetType; From 70db3808e1ca01fd693180cd6f10f3ca42ef70a0 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 14 Apr 2022 09:22:27 -0500 Subject: [PATCH 3/5] Update copyrights. --- cpp/src/structs/structs_column_view.cpp | 2 +- cpp/tests/partitioning/partition_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/structs/structs_column_view.cpp b/cpp/src/structs/structs_column_view.cpp index 0cd2aa68301..681f13386ff 100644 --- a/cpp/src/structs/structs_column_view.cpp +++ b/cpp/src/structs/structs_column_view.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, NVIDIA CORPORATION. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/tests/partitioning/partition_test.cpp b/cpp/tests/partitioning/partition_test.cpp index 3bb78feff89..e46f4bc020b 100644 --- a/cpp/tests/partitioning/partition_test.cpp +++ b/cpp/tests/partitioning/partition_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021, NVIDIA CORPORATION. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 9213be0b52966d32d74424fc50520748dc44e9a2 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 14 Apr 2022 14:49:21 -0500 Subject: [PATCH 4/5] Update cpp/tests/iterator/value_iterator_test_strings.cu Co-authored-by: Yunsong Wang --- cpp/tests/iterator/value_iterator_test_strings.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/tests/iterator/value_iterator_test_strings.cu b/cpp/tests/iterator/value_iterator_test_strings.cu index 43bc6803146..9aa18eb844f 100644 --- a/cpp/tests/iterator/value_iterator_test_strings.cu +++ b/cpp/tests/iterator/value_iterator_test_strings.cu @@ -12,13 +12,13 @@ * or implied. See the License for the specific language governing permissions and limitations under * the License. */ +#include "iterator_tests.cuh" + #include #include #include -#include - #include #include #include From be6d008ec493dfaa0cb88df2eef1ce8caa9c4792 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 14 Apr 2022 14:50:21 -0500 Subject: [PATCH 5/5] Update partition_test.cpp --- cpp/tests/partitioning/partition_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/tests/partitioning/partition_test.cpp b/cpp/tests/partitioning/partition_test.cpp index e46f4bc020b..014a19e93a9 100644 --- a/cpp/tests/partitioning/partition_test.cpp +++ b/cpp/tests/partitioning/partition_test.cpp @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include -#include -#include -#include - #include #include #include #include #include +#include +#include +#include +#include + template class PartitionTest : public cudf::test::BaseFixture { using value_type = cudf::test::GetType;