From cba1369626e66bcb2b7f6a5780209bf4afb1338a Mon Sep 17 00:00:00 2001 From: JayjeetAtGithub Date: Tue, 27 Aug 2024 15:44:32 -0700 Subject: [PATCH] Add namespaces --- .../common/cudf_tpch_datagen/random_column_generator.cu | 6 ++++++ .../common/cudf_tpch_datagen/random_column_generator.hpp | 6 ++++++ cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.cpp | 6 ++++++ cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.hpp | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/cpp/benchmarks/common/cudf_tpch_datagen/random_column_generator.cu b/cpp/benchmarks/common/cudf_tpch_datagen/random_column_generator.cu index b9ebefc1b96..1ff6daac273 100644 --- a/cpp/benchmarks/common/cudf_tpch_datagen/random_column_generator.cu +++ b/cpp/benchmarks/common/cudf_tpch_datagen/random_column_generator.cu @@ -32,6 +32,9 @@ #include +namespace cudf { +namespace datagen { + namespace { // Functor for generating random strings @@ -239,3 +242,6 @@ template std::unique_ptr generate_repeat_sequence_column +namespace cudf { +namespace datagen { + /** * @brief Generate a column of random strings * @@ -110,3 +113,6 @@ std::unique_ptr generate_repeat_sequence_column( cudf::size_type num_rows, rmm::cuda_stream_view stream = cudf::get_default_stream(), rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource()); + +} // namespace datagen +} // namespace cudf diff --git a/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.cpp b/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.cpp index f0c5c5fdd0b..5a99cf029db 100644 --- a/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.cpp +++ b/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.cpp @@ -37,6 +37,9 @@ #include +namespace cudf { +namespace datagen { + /** * @brief Add a column of days to a column of timestamp_days * @@ -380,3 +383,6 @@ std::unique_ptr perform_left_join(cudf::table_view const& left_inpu stream, mr); } + +} // namespace datagen +} // namespace cudf diff --git a/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.hpp b/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.hpp index 35b96cc922f..0ec9fb56a29 100644 --- a/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.hpp +++ b/cpp/benchmarks/common/cudf_tpch_datagen/table_helpers.hpp @@ -23,6 +23,9 @@ #include +namespace cudf { +namespace datagen { + /** * @brief Add a column of days to a column of timestamp_days * @@ -149,3 +152,6 @@ std::unique_ptr perform_left_join( cudf::size_type num_rows, rmm::cuda_stream_view stream = cudf::get_default_stream(), rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource()); + +} // namespace datagen +} // namespace cudf