-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied suggestions from comments by @csbnw
- Loading branch information
1 parent
0cb5e3a
commit b682506
Showing
8 changed files
with
5 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,7 @@ def test_to_valid_nvrtc_gpu_arch_cc(): | |
assert to_valid_nvrtc_gpu_arch_cc("40") == "52" | ||
assert to_valid_nvrtc_gpu_arch_cc("90b") == "90a" | ||
assert to_valid_nvrtc_gpu_arch_cc("91c") == "90a" | ||
assert to_valid_nvrtc_gpu_arch_cc("10123001") == "52" | ||
assert to_valid_nvrtc_gpu_arch_cc("1234") == "52" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
csbnw
Collaborator
|
||
with pytest.raises(ValueError): | ||
assert to_valid_nvrtc_gpu_arch_cc("") | ||
assert to_valid_nvrtc_gpu_arch_cc("1") | ||
|
Both 10123001 and 1234 seem odd number to test. Maybe add a comment that an invalid number should return the lowest support architecture? You could also make "52" a constant.