-
Notifications
You must be signed in to change notification settings - Fork 47
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
proprietary_binary now supports cuda toolkit version placeholders #377
Conversation
This will allow rapids_cpm to customize download urls based on the CUDA Toolkit version.
d73362d
to
a8ff7fa
Compare
There was a problem hiding this 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.
"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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
/merge |
Description
This will allow rapids_cpm to customize download urls based on the CUDA Toolkit version.
Checklist
cmake-format.json
is up to date with these changes.include_guard(GLOBAL)
)