Skip to content

Commit

Permalink
Update arch check for SD
Browse files Browse the repository at this point in the history
Signed-off-by: Jaemin Choi <[email protected]>
  • Loading branch information
Jaemin Choi committed Jul 23, 2024
1 parent f4fa399 commit d69d9ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ def check_cuda():
dprops = th.cuda.get_device_properties(cur_device)

is_sm75 = dprops.major == 7 and dprops.minor == 5
is_sm8x = dprops.major == 8 and dprops.minor >= 0
is_sm90 = dprops.major == 9 and dprops.minor >= 0
is_sm8x_or_later = dprops.major >= 8

return is_sm8x or is_sm75 or is_sm90
return is_sm75 or is_sm8x_or_later


try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ def check_cuda():
dprops = torch.cuda.get_device_properties(cur_device)

is_sm75 = dprops.major == 7 and dprops.minor == 5
is_sm8x = dprops.major == 8 and dprops.minor >= 0
is_sm90 = dprops.major == 9 and dprops.minor >= 0
is_sm8x_or_later = dprops.major >= 8

return is_sm8x or is_sm75 or is_sm90
return is_sm75 or is_sm8x_or_later


try:
Expand Down

0 comments on commit d69d9ba

Please sign in to comment.