-
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
Flush output streams before creating a process to drop caches #10762
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #10762 +/- ##
================================================
+ Coverage 86.40% 86.43% +0.02%
================================================
Files 143 143
Lines 22444 22444
================================================
+ Hits 19393 19399 +6
+ Misses 3051 3045 -6
Continue to review full report at Codecov.
|
cpp/benchmarks/io/cuio_common.cpp
Outdated
@@ -145,6 +145,8 @@ std::vector<cudf::size_type> segments_in_chunk(int num_segments, int num_chunks, | |||
// Executes the command and returns stderr output | |||
std::string exec_cmd(std::string_view cmd) | |||
{ | |||
// Prevent the output from the command from mixing with the original process' output | |||
fflush(nullptr); |
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.
Is this std::fflush
? Can we use the std::
prefix if so?
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.
May also need #include <cstdio>
for completeness.
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.
Not sure if it was std::fflush
, but now it is :)
Added the include too.
@gpucibot merge |
Small improvement for the
try_drop_l3_cache
feature in cuIO benchmarks.Prevents unflushed output from the original process from intermingling with the output from the
popen
process.