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

Extract debug_utilities.hpp/cu from column_utilities.hpp/cu #13720

Merged
merged 32 commits into from
Oct 23, 2023

Conversation

ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Jul 18, 2023

This PR extracts the implementation of the debug utility function cudf::test::print() from column_utilities.hpp/cu into its separate header/source files (debug_utilities.hpp/cu) for better organizing the relevant code. The new header name is also more expressive and more relevant to its purpose.

The changes in this PR are only moving code around. Not any new functionality or implementation was added.
Closes #13450 (although this is not to address that issue).

@ttnghia ttnghia added 3 - Ready for Review Ready for review by team tests Unit testing for project libcudf Affects libcudf (C++/CUDA) code. Spark Functionality that helps Spark RAPIDS improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 18, 2023
@ttnghia ttnghia self-assigned this Jul 18, 2023
@github-actions github-actions bot added the CMake CMake build issue label Jul 18, 2023
@ttnghia ttnghia marked this pull request as ready for review July 18, 2023 19:43
@ttnghia ttnghia requested review from a team as code owners July 18, 2023 19:43
@davidwendt
Copy link
Contributor

This looks good. Could you describe the steps to add this to libcudf.so for temporary debugging?
Maybe include the steps in the debug_utilities.hpp comments.

@github-actions github-actions bot removed the conda label Oct 16, 2023
@ttnghia ttnghia removed the Spark Functionality that helps Spark RAPIDS label Oct 16, 2023
@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 16, 2023

/ok to test

# Conflicts:
#	conda/recipes/libcudf/meta.yaml
#	cpp/tests/utilities/column_utilities.cu
@ttnghia ttnghia changed the title Extract cudf::test::print into a separate translation unit and make it independent from gtest Refactor tests/column_utilities.* and make them independent from gtest library Oct 17, 2023
@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 17, 2023

/ok to test

@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 18, 2023

/ok to test

@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 19, 2023

/ok to test

@ttnghia ttnghia changed the title Refactor tests/column_utilities.* and make them independent from gtest library Extract tests/debug_utilities.* from tests/column_utilities.* Oct 20, 2023
@ttnghia ttnghia changed the title Extract tests/debug_utilities.* from tests/column_utilities.* Extract tests/utilities/debug_utilities.* from tests/utilities/column_utilities.* Oct 20, 2023
@ttnghia ttnghia changed the title Extract tests/utilities/debug_utilities.* from tests/utilities/column_utilities.* Extract debug_utilities.hpp/cu from column_utilities.hpp/cu Oct 20, 2023
@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 20, 2023

/ok to test

@ttnghia ttnghia requested review from bdice and davidwendt October 20, 2023 19:07
@ttnghia
Copy link
Contributor Author

ttnghia commented Oct 23, 2023

/merge

@rapids-bot rapids-bot bot merged commit 8ae3aab into rapidsai:branch-23.12 Oct 23, 2023
54 checks passed
@ttnghia ttnghia deleted the debug_utils branch October 23, 2023 17:43
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 CMake CMake build issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change tests Unit testing for project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Move cudf::test::print out of test into a public API
5 participants