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
57fa6462
Commit
57fa6462
authored
Aug 01, 2022
by
Titus von Koeller
Browse files
minor refactor to more concise syntax
parent
4a6ea7e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
bitsandbytes/cuda_setup.py
bitsandbytes/cuda_setup.py
+1
-2
No files found.
bitsandbytes/cuda_setup.py
View file @
57fa6462
...
@@ -131,8 +131,7 @@ def evaluate_cuda_setup():
...
@@ -131,8 +131,7 @@ def evaluate_cuda_setup():
cc
=
get_compute_capability
()
cc
=
get_compute_capability
()
binary_name
=
'libbitsandbytes_cpu.so'
binary_name
=
'libbitsandbytes_cpu.so'
has_gpu
=
cc
!=
''
if
not
(
has_gpu
:
=
bool
(
cc
)):
if
not
has_gpu
:
print
(
'WARNING: No GPU detected! Check our CUDA paths. Processing to load CPU-only library...'
)
print
(
'WARNING: No GPU detected! Check our CUDA paths. Processing to load CPU-only library...'
)
return
binary_name
return
binary_name
...
...
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