-
Notifications
You must be signed in to change notification settings - Fork 165
Add back CuPy as an optional test dependency + Fix an example bug #334
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
Conversation
/ok to test |
/ok to test |
/ok to test |
/ok to test |
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 like everything you've done. I would perhaps change the title of the review or the commit message to make it more general like "CI requirements change and associated bugfixes"
Thanks, Keenan! Adding CuPy back is the main purpose of this PR. Everything else (updating/fixing the examples, adding test requirements, etc) are all done to serve this purpose, so as to make the CI green. I updated the PR description and title. |
@@ -300,9 +300,9 @@ jobs: | |||
- name: Run cuda.core tests | |||
shell: bash --noprofile --norc -xeuo pipefail {0} | |||
run: | | |||
if [[ $SKIP_CUDA_BINDINGS_TEST == 1 ]]; then | |||
if [[ ${{ matrix.python-version }} == "3.13" ]]; then |
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.
Just curious, what was the motivation for switching the order of if
s around here?
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.
Because I wrote this check and I got myself confused about what it meant. In a few weeks this part will be nuked.
This is the second attempt of adding CuPy as an optional test dependency (4494a27). Previously we could not do it because
cupy.random.random()
APIs (used in code samples) require cuRAND to exist and I did not want to inflate the cached CTK sizes. This PR switches to use the new random number generator, which does not require cuRAND (host library). It also has an additional benefit that we teach users to not use the legacy random APIs.An example bug on CUDA 11 is exposed as a result of this PR, which is also fixed (#334 (comment)).