-
Notifications
You must be signed in to change notification settings - Fork 91
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
handle CTK version specific options in the linker test #371
base: main
Are you sure you want to change the base?
handle CTK version specific options in the linker test #371
Conversation
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
|
I looked. I'll ping @ksimpson-work to chat 1:1. |
… into handle-version-specific-options
/ok to test |
… into handle-version-specific-options
/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.
This looks great to me. (When I looked before the weekend I saw a CI error but it looked unrelated. Is it gone now?)
] | ||
if not culink_backend: |
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.
Suggested for line 22 above:
if culink_backend:
nvjitlink = None
else:
from cuda.bindings import nvjitlink
Then here:
if nvjitlink is not None:
That way the import
appears only once, and near the top, where it is more expected.
cuda_core/tests/test_linker.py
Outdated
@@ -2,6 +2,7 @@ | |||
# | |||
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE | |||
|
|||
|
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.
Delete the extra empty line again?
/ok to test |
/ok to test |
/ok to test |
1 similar comment
/ok to test |
This change skips tests when a specific nvjitlink exception is raised for invalid option, which happens if the option is invalid, or if the option is invalid for the given CTK.
I think we should also add cuda 12.4 to the test matrix because <21.3 targets the culink backend, and cuda 12.6 has options which aren't part of 12.4