forked from mrq/bitsandbytes-rocm
Perform check using implicit list length
Instead of 'ccs is not None', as ccs is always a list, so this if is currently always True
This commit is contained in:
parent
9b5f2eda8f
commit
58aa7c53f6
|
@ -103,7 +103,7 @@ def get_compute_capability(cuda):
|
|||
None.
|
||||
"""
|
||||
ccs = get_compute_capabilities(cuda)
|
||||
if ccs is not None:
|
||||
if ccs:
|
||||
# TODO: handle different compute capabilities; for now, take the max
|
||||
return ccs[-1]
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user