Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move strings to date/time types benchmarks to nvbench #17229

Merged

Conversation

davidwendt
Copy link
Contributor

Description

Moves the cpp/benchmarks/string/convert_datetime.cpp and cpp/benchmarks/string/convert_duration.cpp benchmark implementations from google-bench to nvbench.

Checklist

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

@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 31, 2024
@davidwendt davidwendt self-assigned this Oct 31, 2024
@github-actions github-actions bot added the CMake CMake build issue label Oct 31, 2024
@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Nov 5, 2024
@davidwendt davidwendt marked this pull request as ready for review November 5, 2024 19:37
@davidwendt davidwendt requested a review from a team as a code owner November 5, 2024 19:37
Copy link
Contributor

@karthikeyann karthikeyann left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@vyasr
Copy link
Contributor

vyasr commented Nov 7, 2024

/merge

Comment on lines +27 to +31
NVBENCH_DECLARE_TYPE_STRINGS(cudf::duration_D, "cudf::duration_D", "cudf::duration_D");
NVBENCH_DECLARE_TYPE_STRINGS(cudf::duration_s, "cudf::duration_s", "cudf::duration_s");
NVBENCH_DECLARE_TYPE_STRINGS(cudf::duration_ms, "cudf::duration_ms", "cudf::duration_ms");
NVBENCH_DECLARE_TYPE_STRINGS(cudf::duration_us, "cudf::duration_us", "cudf::duration_us");
NVBENCH_DECLARE_TYPE_STRINGS(cudf::duration_ns, "cudf::duration_ns", "cudf::duration_ns");
Copy link
Contributor

@karthikeyann karthikeyann Nov 7, 2024

Choose a reason for hiding this comment

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

Could we move this to a common header?
And extend for other dtypes too.

Copy link
Contributor Author

@davidwendt davidwendt Nov 7, 2024

Choose a reason for hiding this comment

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

I've since seen other usages that I feel would require a separate PR to resolve.
Example: https://github.com/rapidsai/cudf/pull/17194/files#diff-2fa34b25a2e1b46e1e15f633b539e9b930a7728b9159e5ec810dd9d0e17bc50aR159-R219

@rapids-bot rapids-bot bot merged commit 64c72fc into rapidsai:branch-24.12 Nov 7, 2024
102 checks passed
@davidwendt davidwendt deleted the strings-datetime-nvbench branch November 7, 2024 20:08
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 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