"git@developer.sourcefind.cn:OpenDAS/deepspeed.git" did not exist on "ea92ed29bb53d7aea3b9474a8d2e15acd91bf8a8"
Commit 58aa7c53 authored by Tom Aarsen's avatar Tom Aarsen
Browse files

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
parent 9b5f2eda
...@@ -103,7 +103,7 @@ def get_compute_capability(cuda): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment