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

Add log messages about kvikIO compatibility mode #13363

Merged
merged 4 commits into from
May 23, 2023

Conversation

vuule
Copy link
Contributor

@vuule vuule commented May 16, 2023

Description

Log whether kvikIO's compatibility mode is on for a given file input/output.

Checklist

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

@vuule vuule added libcudf Affects libcudf (C++/CUDA) code. cuIO cuIO issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 16, 2023
@vuule vuule self-assigned this May 16, 2023
@vuule vuule marked this pull request as ready for review May 16, 2023 19:56
@vuule vuule requested a review from a team as a code owner May 16, 2023 19:56
Comment on lines +41 to +42
CUDF_LOG_INFO("Writing a file using kvikIO, with compatibility mode {}.",
_kvikio_file.is_compat_mode_on() ? "on" : "off");
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also log for the else branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to log anything in the else branch because it calls make_cufile_output, which includes the logging for that path (whether GDS was used or not).
Same goes for the other file, just with make_cufile_input.

@@ -42,6 +42,8 @@ class file_source : public datasource {
{
if (detail::cufile_integration::is_kvikio_enabled()) {
_kvikio_file = kvikio::FileHandle(filepath);
CUDF_LOG_INFO("Reading a file using kvikIO, with compatibility mode {}.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly.

@vuule vuule requested a review from ttnghia May 22, 2023 22:18
@vuule
Copy link
Contributor Author

vuule commented May 23, 2023

/merge

@rapids-bot rapids-bot bot merged commit 94bdca6 into rapidsai:branch-23.06 May 23, 2023
50 checks passed
@vuule vuule deleted the fea-kvikio-compat-log branch May 23, 2023 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuIO cuIO 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.

None yet

3 participants