-
Notifications
You must be signed in to change notification settings - Fork 915
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
Fix out-of-memory error in UrlDecode benchmark #10258
Fix out-of-memory error in UrlDecode benchmark #10258
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10258 +/- ##
=============================================
Coverage 10.42% 10.43%
=============================================
Files 119 122 +3
Lines 20603 20583 -20
=============================================
- Hits 2148 2147 -1
+ Misses 18455 18436 -19
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@gpucibot merge |
Fixes out-of-memory error that occurs when running the `BINARYOP_BENCH` `COMPILED_BINARYOP` benchmark combined with the `BINARYOP` benchmark. The following minimal command shows the error: ``` benchmarks/BINARYOP_BENCH '--benchmark_filter=COMPILED_BINARYOP|100000000/10' ... BINARYOP<double, TreeType::IMBALANCED_LEFT, false>/binaryop_double_imbalanced_unique/100000000/10/manual_time 40.4 ms 40.4 ms 17 bytes_per_second=202.953G/s terminate called after throwing an instance of 'rmm::out_of_memory' what(): std::bad_alloc: out_of_memory: RMM failure at:/conda/envs/rapids/include/rmm/mr/device/pool_memory_resource.hpp:192: Maximum pool size exceeded Aborted (core dumped) ``` The `COMPILED_BINARYOP` is using a `TEMPLATED_BENCHMARK_F` macro which causes a new separate memory pool to be created instead of reusing the one already created by `BINARYOP`. This PR reworks the benchmark macros in `compiled_binaryop.cpp` to avoid using `TEMPLATED_BENCHMARK_F` allowing it share the existing memory pool. Similar to #10258 Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Nghia Truong (https://github.com/ttnghia) - MithunR (https://github.com/mythrocks) - Karthikeyan (https://github.com/karthikeyann) URL: #10269
Fixes out-of-memory error that occurs when running the
STRINGS_BENCH
UrlDecode
benchmark combined with any other benchmark. The following minimal command shows the error:The
UrlDecode
is the only benchmark in theSTRINGS_BENCH
using aTEMPLATED_BENCHMARK_F
which causes a new separate memory pool to be created instead of reusing the one already created from the previous benchmark.This PR reworks the benchmark macros in
url_decode.cpp
to avoid usingTEMPLATED_BENCHMARK_F
which fixes the issue.