Skip to content

[CI] Rename check_cuda_only() to check_cuda_or_hip(). - #3946

Merged
Jokeren merged 1 commit into
mainfrom
test-cuda-only
May 20, 2024
Merged

Jokeren merged 1 commit into
mainfrom
test-cuda-only

Conversation

@jlebar

@jlebar jlebar commented May 19, 2024 •

Copy link
Copy Markdown
Contributor

This matches the behavior of the function.

@jlebar
jlebar requested a review from ptillet as a code owner May 19, 2024 23:16
@jlebar jlebar changed the title test cuda only [Tests] Remove check_cuda_only() helper function. May 19, 2024
@jlebar
jlebar requested a review from Jokeren May 19, 2024 23:18
@Jokeren

Jokeren commented May 19, 2024

Copy link
Copy Markdown
Contributor

Ah, I'm afraid it may have to do with Intel devices? @whitneywhtsang

@Jokeren

Jokeren commented May 19, 2024

Copy link
Copy Markdown
Contributor

@ThomasRaoux

Copy link
Copy Markdown
Collaborator

yes I assume this will break downstream backends?

@jlebar

jlebar commented May 19, 2024

Copy link
Copy Markdown
Contributor Author

I see, this was indeed added in a3c39d8 by someone with an @intel.com address. At the time, there was no HIP support, so this made sense.

I'll rewrite the PR from if hip(): skip() to if not cuda(): skip. Then that should continue to work for intel.

This matches the behavior of the function.
@jlebar jlebar changed the title [Tests] Remove check_cuda_only() helper function. [CI] Rename check_cuda_only() to check_cuda_or_hip(). May 20, 2024
@jlebar

jlebar commented May 20, 2024

Copy link
Copy Markdown
Contributor Author

OK, I have updated this PR to be a simple rename.

@antiagainst antiagainst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah. It's a bit confusing that cuda can mean both in pytorch.. thanks for making this clear!

@Jokeren
Jokeren merged commit 630e8fa into main May 20, 2024
@Jokeren
Jokeren deleted the test-cuda-only branch May 20, 2024 02:08

@whitneywhtsang whitneywhtsang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for making the code more readable!

Comment thread python/test/unit/language/test_core.py Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants