Skip to content

Improve ORC writer benchmark with nvbench - #11598

Merged
rapids-bot[bot] merged 16 commits into
NVIDIA:branch-22.10from
PointKernel:improve-orc-bench
Aug 29, 2022
Merged

rapids-bot[bot] merged 16 commits into
NVIDIA:branch-22.10from
PointKernel:improve-orc-bench

Conversation

@PointKernel

@PointKernel PointKernel commented Aug 25, 2022 •

Copy link
Copy Markdown
Member

Description

Issue #10941

Changes involved in this PR:

  • Rewrites the ORC writer benchmarks with nvbench
  • Cleans up the existing implementations by moving nvbench macros to a new nvbench_helpers.hpp header
  • Fixes two small issues in orc_writer_chunks benchmarks
    • Set state target stream
    • Set up memory pool
  • Removes unused headers
  • Gets rid of cudf_io aliases
  • Fixes a bug in the current ORC writer benchmark: calculating the size of one single file

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@PointKernel PointKernel added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. CMake CMake build issue cuIO cuIO issue tech debt improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 25, 2022
@PointKernel PointKernel self-assigned this Aug 25, 2022
@PointKernel
PointKernel requested a review from a team as a code owner August 25, 2022 17:26
@codecov

codecov Bot commented Aug 25, 2022 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.10@d241458). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.10   #11598   +/-   ##
===============================================
  Coverage                ?   86.41%           
===============================================
  Files                   ?      145           
  Lines                   ?    22993           
  Branches                ?        0           
===============================================
  Hits                    ?    19870           
  Misses                  ?     3123           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hyperbolic2346 hyperbolic2346 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work, thanks!

Comment on lines +27 to +36
enum class data_type : int32_t {
INTEGRAL = static_cast<int32_t>(type_group_id::INTEGRAL),
INTEGRAL_SIGNED = static_cast<int32_t>(type_group_id::INTEGRAL_SIGNED),
FLOAT = static_cast<int32_t>(type_group_id::FLOATING_POINT),
DECIMAL = static_cast<int32_t>(type_group_id::FIXED_POINT),
TIMESTAMP = static_cast<int32_t>(type_group_id::TIMESTAMP),
STRING = static_cast<int32_t>(cudf::type_id::STRING),
LIST = static_cast<int32_t>(cudf::type_id::LIST),
STRUCT = static_cast<int32_t>(cudf::type_id::STRUCT)
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't use enums from cudf::type_id directly?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the types like INTEGRAL be just type_id::INT32?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

INTEGRAL represents all integral types. Types are used in round-robin order so we get a mix of columns with different, but related, types. This allows us to cover all supported types without having separate benchmarks for each type.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't use enums from cudf::type_id directly?

As you might notice, data_type is a combination of type_group_id and cudf::type_id thus the wrapper layer is necessary.

@PointKernel

Copy link
Copy Markdown
Member Author

rerun tests

@PointKernel

Copy link
Copy Markdown
Member Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit 03f3543 into NVIDIA:branch-22.10 Aug 29, 2022
@PointKernel
PointKernel deleted the improve-orc-bench branch November 16, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team CMake CMake build issue cuIO cuIO issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants