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:
Tom Aarsen 2022-09-15 12:44:09 +02:00
parent 9b5f2eda8f
commit 58aa7c53f6

View File

@ -103,7 +103,7 @@ def get_compute_capability(cuda):
None. None.
""" """
ccs = get_compute_capabilities(cuda) ccs = get_compute_capabilities(cuda)
if ccs is not None: if ccs:
# TODO: handle different compute capabilities; for now, take the max # TODO: handle different compute capabilities; for now, take the max
return ccs[-1] return ccs[-1]
return None return None