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

Bug/update libcudf to handle arrow12 changes #13794

Conversation

robertmaynard
Copy link
Contributor

Description

Contiuation of #13790 as more changes are needed to support Arrow 12 builds from source ( both static and shared ). This fixes issues when building against Arrow with S3 enabled, and corrects missing acero targets.

NVIDIA/spark-rapids-jni#1306

Checklist

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

On application shutdown libcudf needs to call `EnsureS3Finalized`
before exit. This is tricky since the arrow might not be compiled
with S3 support enabled.

So use dlopen to check for the symbol existence, and call when
it does exist. Only do this in the S3 tests for now as we figure
out a longer term solution.
@robertmaynard robertmaynard added bug Something isn't working 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Aug 1, 2023
@robertmaynard robertmaynard requested review from a team as code owners August 1, 2023 18:22
@github-actions github-actions bot added libcudf Affects libcudf (C++/CUDA) code. CMake CMake build issue labels Aug 1, 2023
@robertmaynard
Copy link
Contributor Author

apache/arrow#36974 is the upstream issue which covers why we need to use dlopen + dlsym to call the S3 finialize function.

cpp/tests/io/arrow_io_source_test.cpp Outdated Show resolved Hide resolved
cpp/cmake/thirdparty/get_arrow.cmake Outdated Show resolved Hide resolved
@gerashegalov
Copy link
Contributor

spark-rapids-jni runs into

[INFO]      [exec] CMake Error in CMakeLists.txt:
[INFO]      [exec]   export called with target "arrow_dataset_static" which requires target
[INFO]      [exec]   "arrow_acero_static" that is not in any export set. 

with the current state of the PR as the next issue

Copy link
Contributor

@davidwendt davidwendt left a comment

Choose a reason for hiding this comment

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

Approving C++ changes.

Copy link
Contributor

@gerashegalov gerashegalov left a comment

Choose a reason for hiding this comment

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

LGTM, spark-rapids-jni build is working with this PR. Thanks!

@robertmaynard
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit d526530 into rapidsai:branch-23.10 Aug 2, 2023
54 checks passed
@robertmaynard robertmaynard deleted the bug/update_libcudf_to_handle_arrow12_changes branch August 7, 2023 13:27
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 bug Something isn't working CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants