-
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 CMake files in libcudf C++ examples to use existing libcudf build if present #15348
Fix CMake files in libcudf C++ examples to use existing libcudf build if present #15348
Conversation
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.
Great. This is getting closer to what I expect.
Do you think we should also run the binaries from libcudf-example
in the C++ tests job in CI?
The steps to do that:
Add libcudf-example
to
Lines 32 to 34 in 79d2dba
rapids-mamba-retry install \ | |
--channel "${CPP_CHANNEL}" \ | |
libcudf libcudf_kafka libcudf-tests |
Then add a section like this to the test_cpp.sh
job that calls a new script called run_cudf_examples.sh
. Track the error/exit code.
Lines 16 to 18 in 79d2dba
rapids-logger "Run libcudf gtests" | |
./ci/run_cudf_ctests.sh -j20 | |
SUITEERROR=$? |
Test that this fails in CI by pushing a change that compiles to an example binary but exits with a nonzero code.
Just to be clear. This would just run the example to make sure it did not crash? |
Yes, this is just to verify the example binaries (1) were built, (2) were packaged, and (3) exit 0 / do not crash. It sounds like we had issues with multiple aspects of the examples, not least of which was the build failing silently. The binaries could be run under sanitizers in the other memcheck test script but that is lower priority to me. |
We could run the examples in CI in another PR but I don’t want to lose track of this. I’d prefer it in this PR since the changes should be relatively small and are somewhat related to the other build fixes here. |
@mhaseeb123 would you mind making your PR title a little more specific? The title goes in CHANGELOG.md when we release so specific titles help make this file useful. |
CUDA_ARCHITECTURE
CUDA_ARCHITECTURE
CUDA_ARCHITECTURE
CUDA_ARCHITECTURE
Updated the PR title. |
/ok to test |
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.
Nice. This is vastly improved. I have a few comments, but we're getting closer.
/ok to test |
Weird CI build failure. Retriggering run. |
/ok to test |
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.
This seems fine to me. I think it'd be good to get approval from @robertmaynard / @KyleFromNVIDIA / @davidwendt since they all requested changes.
/merge |
All changes incorporated. Thank you!
/merge |
This PR adds a new example `parquet_io` to `libcudf/cpp/examples` instrumenting reading and writing parquet files with different column encodings (same for all columns for now) and compressions to close #15344. The example maybe elaborated and/or evolved as needed. #15348 should be merged before this PR to get all CMake updates needed to successfully build and run this example. Authors: - Muhammad Haseeb (https://github.com/mhaseeb123) Approvers: - Vukasin Milovanovic (https://github.com/vuule) - Ray Douglass (https://github.com/raydouglass) URL: #15420
Description
This PR fixes the CMake artifacts for libcudf examples and includes CI updates to create executable
libcudf-example
conda package to run from CIChecklist