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

Fix cmake error after upgrading to Arrow 9 #11513

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Aug 11, 2022

After upgrading to Arrow 9 (#11507), some systems experience a cmake issue:

cudf/cpp/build/_deps/arrow-src/cpp/CMakeLists.txt:864: error: The dependency target "xsimd" of target "arrow_dependencies" does not exist.

This may be due to the configurations for Arrow is looking for a local installation of xsimd, which does not exist or the installation path is not provided.

This PRs adds an option to cudf cmake, specifying that Arrow should handle xsimd by itself.

@ttnghia ttnghia self-assigned this Aug 11, 2022
@ttnghia ttnghia requested a review from a team as a code owner August 11, 2022 04:56
@github-actions github-actions bot added CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. labels Aug 11, 2022
@ttnghia ttnghia requested a review from galipremsagar August 11, 2022 04:56
@ttnghia ttnghia added bug Something isn't working 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Aug 11, 2022
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.10@0df6178). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             branch-22.10   #11513   +/-   ##
===============================================
  Coverage                ?   86.48%           
===============================================
  Files                   ?      145           
  Lines                   ?    22844           
  Branches                ?        0           
===============================================
  Hits                    ?    19756           
  Misses                  ?     3088           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -121,6 +121,7 @@ function(find_and_configure_arrow VERSION BUILD_STATIC ENABLE_S3 ENABLE_ORC ENAB
"ARROW_GRPC_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_PROTOBUF_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_ZSTD_USE_SHARED ${ARROW_BUILD_SHARED}"
"xsimd_SOURCE BUNDLED"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the default value here?

It looks like when the dependency source is resolved, it may have an AUTO option that attempts to find the package and falls back to the bundled copy.

https://github.com/apache/arrow/blob/b7c94e2f330b628ac3d3c92972ad691c0ec454d4/cpp/cmake_modules/ThirdpartyToolchain.cmake#L2251

https://github.com/apache/arrow/blob/b7c94e2f330b628ac3d3c92972ad691c0ec454d4/cpp/cmake_modules/ThirdpartyToolchain.cmake#L259

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AUTO also works on my local machine. I'm going to change this to AUTO.

@galipremsagar galipremsagar added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team labels Aug 11, 2022
@galipremsagar
Copy link
Contributor

@gpucibot merge

@rapids-bot rapids-bot bot merged commit de06ed9 into rapidsai:branch-22.10 Aug 11, 2022
@ttnghia ttnghia deleted the fix_arrow_9 branch August 11, 2022 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants