Skip to content

Add build patch functionality#801

Merged
rapids-bot[bot] merged 8 commits intorapidsai:branch-25.06from
KyleFromNVIDIA:build-patch
Mar 24, 2025
Merged

Add build patch functionality#801
rapids-bot[bot] merged 8 commits intorapidsai:branch-25.06from
KyleFromNVIDIA:build-patch

Conversation

@KyleFromNVIDIA
Copy link
Copy Markdown
Member

@KyleFromNVIDIA KyleFromNVIDIA commented Mar 21, 2025

Description

This enables patches that only affect the build process of a project and not its exported headers or runtime functionality. If all of a project's patches are build patches, it is not required to be downloaded and can be found with find_package().

Resolves #799

TODO:

  • Add tests for rapids_cpm_find()

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The cmake-format.json is up to date with these changes.
  • I have added new files under rapids-cmake/
    • I have added include guards (include_guard(GLOBAL))
    • I have added the associated docs/ rst file and update the api.rst

This enables patches that only affect the build process of a project
and not its exported headers or runtime functionality. If all of
a project's patches are build patches, it is not required to be
downloaded and can be found with `find_package()`.

Resolves rapidsai#799
@KyleFromNVIDIA KyleFromNVIDIA added breaking Introduces a breaking change feature request New feature or request labels Mar 21, 2025
@KyleFromNVIDIA KyleFromNVIDIA marked this pull request as ready for review March 21, 2025 15:49
@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner March 21, 2025 15:49
@KyleFromNVIDIA KyleFromNVIDIA added the 3 - Ready for Review Ready for review by team label Mar 21, 2025
Copy link
Copy Markdown
Contributor

@robertmaynard robertmaynard left a comment

Choose a reason for hiding this comment

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

Docs need updating for the build entry in the json file

@KyleFromNVIDIA
Copy link
Copy Markdown
Member Author

This is currently blocked by #801.

@KyleFromNVIDIA
Copy link
Copy Markdown
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 9480e4a into rapidsai:branch-25.06 Mar 24, 2025
18 checks passed
miscco added a commit to miscco/raft that referenced this pull request Mar 25, 2025
rapids-cmake [recently](rapidsai/rapids-cmake#801) changed the signature of `rapids_cpm_generate_patch_command`, adding a third argument.
@miscco
Copy link
Copy Markdown
Contributor

miscco commented Mar 25, 2025

I find that this breaks us building raft in the CCCL CI, I have provided a patch that adds a false argument to the function call rapidsai/raft#2619

rapids-bot bot pushed a commit to rapidsai/raft that referenced this pull request Mar 25, 2025
rapids-cmake [recently](rapidsai/rapids-cmake#801) changed the signature of `rapids_cpm_generate_patch_command`, adding a third argument.

This is currently [breaking](https://github.com/NVIDIA/cccl/actions/runs/14054872547/job/39352044153?pr=4253#step:6:9536) CCCL CI

Authors:
  - Michael Schellenberger Costa (https://github.com/miscco)

Approvers:
  - Robert Maynard (https://github.com/robertmaynard)
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)

URL: #2619
KyleFromNVIDIA pushed a commit to KyleFromNVIDIA/raft that referenced this pull request Mar 25, 2025
raydouglass pushed a commit that referenced this pull request Mar 25, 2025
This will allow us to easily deal with patching issues in cuspatial.

Backport of #801
raydouglass pushed a commit to rapidsai/raft that referenced this pull request Mar 25, 2025
This is needed due to rapidsai/rapids-cmake#805,
which backports rapidsai/rapids-cmake#801.

Backport of #2619.

Co-authored-by: Michael Schellenberger Costa <miscco@nvidia.com>
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 breaking Introduces a breaking change feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA] Add "build patch" functionality

3 participants