-
Notifications
You must be signed in to change notification settings - Fork 66
Always download repos when they are being patched #525
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
Merged
rapids-bot
merged 15 commits into
rapidsai:branch-24.02
from
vyasr:feat/always_download_if_patching
Jan 17, 2024
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
06e0b98
Add test that fails
vyasr a699403
Always add the library when a patch command is present
vyasr 97839e2
Make patch command a string and always quote it
vyasr 06b9467
Remove explicit policy statement
vyasr f70b438
Cleanup and comments
vyasr adf03d5
Lump the PATCH_COMMAND keyword into the command produced by generate_…
vyasr cea12ab
Fix one outstanding test
vyasr 980a90d
Remove debugging message
vyasr f803212
Fix my test
vyasr 4204961
Convert patch command back to list
vyasr 4cebbfa
Revert "Fix one outstanding test"
vyasr 924effd
Final cleanup
vyasr a252bde
Don't include modules until after cmake_minimum_required
vyasr ca2c5bd
Get project details from rapids-cmake
vyasr f4ad409
Formatting
vyasr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| #============================================================================= | ||
| # Copyright (c) 2023-2024, NVIDIA CORPORATION. | ||
vyasr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| #============================================================================= | ||
| include(${rapids-cmake-dir}/cpm/init.cmake) | ||
| include(${rapids-cmake-dir}/cpm/cccl.cmake) | ||
|
|
||
| cmake_minimum_required(VERSION 3.23.1) | ||
| project(rapids-cpm_find-patch-command-project LANGUAGES CXX) | ||
|
|
||
| find_package(Git) | ||
| set(deps_dir "${CMAKE_CURRENT_BINARY_DIR}/_cccl_dep") | ||
|
|
||
| if(NOT EXISTS "${deps_dir}") | ||
| file(MAKE_DIRECTORY "${deps_dir}") | ||
| execute_process( | ||
| COMMAND ${GIT_EXECUTABLE} clone --depth 1 --branch v2.2.0 https://github.com/NVIDIA/cccl.git | ||
| WORKING_DIRECTORY "${deps_dir}") | ||
| endif() | ||
|
|
||
| set(cccl_dir "${deps_dir}/cccl") | ||
| list(APPEND CMAKE_PREFIX_PATH "${cccl_dir}") | ||
| unset(CPM_SOURCE_CACHE) | ||
| unset(CPM_SOURCE_CACHE CACHE) | ||
| rapids_cpm_init() | ||
| rapids_cpm_cccl() | ||
|
|
||
| if(NOT "${CCCL_ADDED}") | ||
| message(FATAL_ERROR "The found repo was used rather than downloading and patching a new version") | ||
| endif() | ||
|
|
||
| execute_process( | ||
| COMMAND ${GIT_EXECUTABLE} diff-files --quiet | ||
| RESULT_VARIABLE REPO_IS_DIRTY | ||
| WORKING_DIRECTORY "${CCCL_SOURCE_DIR}") | ||
|
|
||
| if(NOT ${REPO_IS_DIRTY}) | ||
| message(FATAL_ERROR "The repo was downloaded to ${CCCL_SOURCE_DIR} but not patched.") | ||
| endif() | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.