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

Use custom nvbench entry point to ensure cudf::nvbench_base_fixture usage #13183

Conversation

robertmaynard
Copy link
Contributor

Description

Previously we used the nvbench::main CMake target which would cause the same main.o to re-used across targets.
Since this object file was compiled without any knowledge of rmm or libcudf it wouldn't have our custom NVBENCH_ENVIRONMENT type. This caused our benchmarks to not execute with the rmm pool allocator.

Checklist

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

@robertmaynard robertmaynard added bug Something isn't working 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Apr 20, 2023
@robertmaynard robertmaynard requested review from a team as code owners April 20, 2023 15:29
@github-actions github-actions bot added CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. labels Apr 20, 2023
This ensures that the `nvbench_base_fixture` we need, is constructed
before any benchmark is run.
@robertmaynard robertmaynard force-pushed the bug/allow_use_custom_nvbench_entry_point branch from 35f7ba8 to 4dc46a0 Compare April 20, 2023 15:30
Copy link
Contributor

@davidwendt davidwendt left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.

cpp/benchmarks/fixture/nvbench_main.cu Outdated Show resolved Hide resolved
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Thanks for this fix, @robertmaynard. Looks good to me.

@robertmaynard
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit bc2fa11 into rapidsai:branch-23.06 Apr 24, 2023
@robertmaynard robertmaynard deleted the bug/allow_use_custom_nvbench_entry_point branch April 25, 2023 17:13
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 bug Something isn't working CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants