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

Enable builds with scikit-build #10919

Merged
merged 31 commits into from
May 27, 2022
Merged

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented May 20, 2022

This PR changes the Python build system for cudf to use scikit-build and leverage CMake under the hood.

This PR depends on rapidsai/rapids-cmake#198. Once that PR is merged, I can update the pull of rapids-cmake into the cudf Python CMake build.

@vyasr vyasr added 2 - In Progress Currently a work in progress Python Affects Python cuDF API. CMake CMake build issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 20, 2022
@vyasr vyasr self-assigned this May 20, 2022
@vyasr vyasr force-pushed the feature/skbuild branch from 1d017c8 to c9801a7 Compare May 24, 2022 01:52
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label May 24, 2022
@vyasr vyasr force-pushed the feature/skbuild branch from 1b4bcb9 to 13cd6be Compare May 25, 2022 00:48
@codecov
Copy link

codecov bot commented May 25, 2022

Codecov Report

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

@@               Coverage Diff               @@
##             branch-22.08   #10919   +/-   ##
===============================================
  Coverage                ?   86.32%           
===============================================
  Files                   ?      144           
  Lines                   ?    22696           
  Branches                ?        0           
===============================================
  Hits                    ?    19593           
  Misses                  ?     3103           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca4bc97...8de6eb9. Read the comment docs.

@vyasr vyasr added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels May 26, 2022
Copy link
Member

@ajschmidt8 ajschmidt8 left a comment

Choose a reason for hiding this comment

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

Approving ops-codeowner file changes

Copy link
Contributor

@shwina shwina left a comment

Choose a reason for hiding this comment

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

Looks good to me. Would have been great to have a single CMakeLists.txt for all of Cython, but Vyas explained offline that this skbuild issue is blocking that.

@vyasr
Copy link
Contributor Author

vyasr commented May 27, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit eeec6a0 into rapidsai:branch-22.08 May 27, 2022
rapids-bot bot pushed a commit that referenced this pull request Jun 3, 2022
…AKE_ARGS (#11013)

#10919 changed the Python build system to build its own internal copy of libcudf when invoked directly. It also modified our build.sh script (and associated CI scripts) accordingly so that everywhere that should be reusing a C++ build for a Python build would do so via CMake. This PR makes that behavior the default in build.sh, so any builds of the Python library using build.sh will revert to the prior behavior of searching for a C++ library and failing if one doesn't already exist on the path. Users can still provide the appropriate CMake arguments to the build.sh invocation to make it build libcudf within cuDF Python if they so desire.

Additionally, this PR avoids shadowing the `CMAKE_ARGS` environment variable in build.sh, which is important for conda-forge compatibility.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - AJ Schmidt (https://github.com/ajschmidt8)

URL: #11013
@vyasr vyasr deleted the feature/skbuild branch January 23, 2024 21:23
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 Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants