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

proprietary_binary now supports cuda toolkit version placeholders #377

Merged

Conversation

robertmaynard
Copy link
Contributor

Description

This will allow rapids_cpm to customize download urls based on the CUDA Toolkit version.

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

@robertmaynard robertmaynard added feature request New feature or request non-breaking Introduces a non-breaking change 3 - Ready for Review Ready for review by team labels Feb 21, 2023
@robertmaynard robertmaynard requested a review from a team as a code owner February 21, 2023 18:07
@robertmaynard robertmaynard requested a review from vyasr February 22, 2023 03:51
This will allow rapids_cpm to customize download urls based on the
CUDA Toolkit version.
@robertmaynard robertmaynard force-pushed the version_ctk_version_keyword branch from d73362d to a8ff7fa Compare February 22, 2023 16:39
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Some minor suggestions but LGTM.

testing/cpm/cpm_proprietary-url-ctk-version-find-ctk.cmake Outdated Show resolved Hide resolved
testing/cpm/cpm_proprietary-url-ctk-version.cmake Outdated Show resolved Hide resolved
testing/cpm/cpm_proprietary-url-ctk-version.cmake Outdated Show resolved Hide resolved
"test_binary" : {
"version" : "2.6.1",
"proprietary_binary" : {
"x86_64-linux" : "https://fake.url.com/${version}/${cuda-toolkit-version}/x86_64_${cuda-toolkit-version-major}.tgz",
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume the answer is no since it's kind of the whole point of bracket expressions, but just in case: is there any way to force variable evaluation inside brackets? It would be nice to not need to repeat the URL every time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean the fact that we have both x86 and arm? It is an explicit choice so that we can explicitly state support for multiple platforms in a easy to understand manner.

To have only a single url we would need:

  • Introduce a key named all_platforms
  • Add extra keys / values to proprietary_binary that mapped from the system arch ( x86 / arm ) to the placeholders used by that package in the download url

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I just mean the repetition of the domain in the URL https://fake.url.com.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a good idea. Want to create an issue for that and we can iterate on it independent of this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

testing/utils/project_template.cmake.in Show resolved Hide resolved
robertmaynard and others added 2 commits February 22, 2023 13:40
Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
@robertmaynard
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit c992589 into rapidsai:branch-23.04 Feb 27, 2023
@robertmaynard robertmaynard deleted the version_ctk_version_keyword branch February 27, 2023 14:03
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 feature request New feature or request non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants