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

Remove benchmarks suffix #10112

Merged
merged 6 commits into from
Jan 25, 2022

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Jan 24, 2022

This PR addresses suggestions from @robertmaynard, @karthikeyann, and @harrism in #10093 to remove the suffix _benchmark from the name of the benchmark files. The developer guide has been updated to reflect this change.

I left a few shared files with the word "benchmark" in them, such as cpp/benchmarks/fixture/benchmark_fixture.hpp and cpp/benchmarks/fixture/templated_benchmark_fixture.hpp.

I built the benchmarks locally to ensure that nothing was broken (I'm noting this because I recall that our CI does not build the benchmarks).

@bdice bdice added code quality libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change labels Jan 24, 2022
@bdice bdice self-assigned this Jan 24, 2022
@bdice bdice requested a review from a team as a code owner January 24, 2022 18:49
@bdice bdice requested review from cwharris and nvdbaranec January 24, 2022 18:49
@github-actions github-actions bot added the CMake CMake build issue label Jan 24, 2022
@bdice bdice added the improvement Improvement / enhancement to an existing function label Jan 24, 2022
Copy link
Contributor

@robertmaynard robertmaynard left a comment

Choose a reason for hiding this comment

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

Can you rename join.cu to left_joins.cu so that we can rename join_nvbench.cu to join.cu.
That to me better captures what exact join routines each file is benchmarking.

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 👍

@harrism
Copy link
Member

harrism commented Jan 24, 2022

CI should build benchmarks. Are you certain it is not? I just fixed this in RMM, which was not.

@bdice
Copy link
Contributor Author

bdice commented Jan 24, 2022

CI should build benchmarks. Are you certain it is not? I just fixed this in RMM, which was not.

Last I checked this was a month ago: #9905. It's possible this has changed since then, but my comment indicated that CI did not build benchmarks. #9810 (comment)

@bdice
Copy link
Contributor Author

bdice commented Jan 24, 2022

@harrism I see your changes to RMM rapidsai/rmm#941 and I think this line indicates we are not building benchmarks in cuDF CI (missing benchmarks):

./build.sh -v libcudf tests --allgpuarch --build_metrics --incl_cache_stats --cmake-args=\"-DCMAKE_INSTALL_LIBDIR=lib\"

Shall I make a follow-up PR to build cuDF benchmarks in CI? There is a trade-off because this would cost additional CI time.

@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #10112 (3d5863d) into branch-22.04 (e24fa8f) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.04   #10112      +/-   ##
================================================
+ Coverage         10.37%   10.42%   +0.04%     
================================================
  Files               119      119              
  Lines             20149    20607     +458     
================================================
+ Hits               2091     2148      +57     
- Misses            18058    18459     +401     
Impacted Files Coverage Δ
python/cudf/cudf/io/csv.py 0.00% <0.00%> (ø)
python/cudf/cudf/io/hdf.py 0.00% <0.00%> (ø)
python/cudf/cudf/io/orc.py 0.00% <0.00%> (ø)
python/cudf/cudf/__init__.py 0.00% <0.00%> (ø)
python/cudf/cudf/_version.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/abc.py 0.00% <0.00%> (ø)
python/cudf/cudf/api/types.py 0.00% <0.00%> (ø)
python/cudf/cudf/io/dlpack.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <0.00%> (ø)
... and 59 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfb6cbe...3d5863d. Read the comment docs.

Copy link
Contributor

@ttnghia ttnghia left a comment

Choose a reason for hiding this comment

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

Fantastic! Please do the same for tests/*_tests.*.

@bdice
Copy link
Contributor Author

bdice commented Jan 25, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit baff5cf into rapidsai:branch-22.04 Jan 25, 2022
@harrism
Copy link
Member

harrism commented Jan 25, 2022

@harrism I see your changes to RMM rapidsai/rmm#941 and I think this line indicates we are not building benchmarks in cuDF CI (missing benchmarks):

./build.sh -v libcudf tests --allgpuarch --build_metrics --incl_cache_stats --cmake-args=\"-DCMAKE_INSTALL_LIBDIR=lib\"

Shall I make a follow-up PR to build cuDF benchmarks in CI? There is a trade-off because this would cost additional CI time.

Would be good to discuss with the team. Not sure what CI time cost would be?

@bdice
Copy link
Contributor Author

bdice commented Jan 25, 2022

Not sure what CI time cost would be?

I think the best way to find out is to open a draft PR. I'll work on this.

@karthikeyann
Copy link
Contributor

I think the best way to find out is to open a draft PR. I'll work on this.

Use build time metrics html report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants