Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
76699b4a
Unverified
Commit
76699b4a
authored
Oct 09, 2022
by
Tim Dettmers
Committed by
GitHub
Oct 09, 2022
Browse files
Merge pull request #37 from tomaarsen/hotfix/colab_just_cpu
Perform check using implicit list length
parents
7740c6e9
58aa7c53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/cuda_setup/main.py
bitsandbytes/cuda_setup/main.py
+1
-1
No files found.
bitsandbytes/cuda_setup/main.py
View file @
76699b4a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment