KEMBAR78
Fix version comparison for defining CUDA11OrLater by IvanYashchuk · Pull Request #60010 · pytorch/pytorch · GitHub
Skip to content

Conversation

@IvanYashchuk
Copy link
Collaborator

Before this PR CUDA11OrLater was incorrectly set to False when torch.version.cuda == "11.0".
torch.version.cuda returns major and minor CUDA versions, it doesn't return patch info.
LooseVersion comparison was calling [11, 0] >= [11, 0, 0] which evaluates to False.

Before this PR `CUDA11OrLater` was incorrectly set to `False` when `torch.version.cuda == "11.0"`.
`torch.version.cuda` returns major and minor CUDA versions, it doesn't return patch info.
LooseVersion comparison was calling `[11, 0] >= [11, 0, 0]` which evaluates to `False`.
@IvanYashchuk IvanYashchuk added the module: testing Issues related to the torch.testing module (not tests) label Jun 15, 2021
@IvanYashchuk IvanYashchuk requested a review from mruberry June 15, 2021 08:54
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 15, 2021

💊 CI failures summary and remediations

As of commit 6e91523 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

nice catch, thanks

@facebook-github-bot
Copy link
Contributor

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in d99a8a3.

@github-actions github-actions bot deleted the IvanYashchuk-patch-2 branch February 12, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged module: testing Issues related to the torch.testing module (not tests) open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants