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
c472bd56
"tests/backend/vscode:/vscode.git/clone" did not exist on "993fd3f94baff137216d2b16dade638f3b6c99c3"
Commit
c472bd56
authored
Aug 05, 2022
by
Tim Dettmers
Browse files
Added the case that all env variables are empty (CUDA docker).
parent
6ad8796c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
bitsandbytes/cuda_setup/paths.py
bitsandbytes/cuda_setup/paths.py
+7
-1
setup.py
setup.py
+1
-1
tests/test_cuda_setup_evaluator.py
tests/test_cuda_setup_evaluator.py
+2
-1
No files found.
bitsandbytes/cuda_setup/paths.py
View file @
c472bd56
...
...
@@ -117,10 +117,16 @@ def determine_cuda_runtime_lib_path() -> Union[Path, None]:
if
env_var
not
in
{
"CONDA_PREFIX"
,
"LD_LIBRARY_PATH"
}
}
cuda_runtime_libs
=
set
()
for
env_var
,
value
in
remaining_candidate_env_vars
:
for
env_var
,
value
in
remaining_candidate_env_vars
.
items
()
:
cuda_runtime_libs
.
update
(
find_cuda_lib_in
(
value
))
if
len
(
cuda_runtime_libs
)
==
0
:
print
(
'CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...'
)
cuda_runtime_libs
.
update
(
find_cuda_lib_in
(
'/usr/local/cuda/lib64'
))
warn_in_case_of_duplicates
(
cuda_runtime_libs
)
return
next
(
iter
(
cuda_runtime_libs
))
if
cuda_runtime_libs
else
None
setup.py
View file @
c472bd56
...
...
@@ -18,7 +18,7 @@ def read(fname):
setup
(
name
=
f
"bitsandbytes"
,
version
=
f
"0.31.
3
"
,
version
=
f
"0.31.
4
"
,
author
=
"Tim Dettmers"
,
author_email
=
"dettmers@cs.washington.edu"
,
description
=
"8-bit optimizers and matrix multiplication routines."
,
...
...
tests/test_cuda_setup_evaluator.py
View file @
c472bd56
...
...
@@ -133,7 +133,7 @@ def test_full_system():
)
version
=
float
(
f
"
{
major
}
.
{
minor
}
"
)
if
version
==
""
and
"LD_LIBRARY_PATH"
:
if
version
==
""
and
"LD_LIBRARY_PATH"
in
os
.
environ
:
ld_path
=
os
.
environ
[
"LD_LIBRARY_PATH"
]
paths
=
ld_path
.
split
(
":"
)
version
=
""
...
...
@@ -144,6 +144,7 @@ def test_full_system():
version
=
float
(
version
)
break
assert
version
>
0
binary_name
=
evaluate_cuda_setup
()
binary_name
=
binary_name
.
replace
(
"libbitsandbytes_cuda"
,
""
)
...
...
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