Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
f4996978
Commit
f4996978
authored
Jul 15, 2023
by
Tim Dettmers
Browse files
Added missing check if LD_LIBRARY_PATH exists. #588
parent
6ec4f0c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
bitsandbytes/__main__.py
bitsandbytes/__main__.py
+10
-9
No files found.
bitsandbytes/__main__.py
View file @
f4996978
...
...
@@ -63,15 +63,16 @@ def generate_bug_report_information():
print
(
''
)
print_header
(
"LD_LIBRARY CUDA PATHS"
)
lib_path
=
os
.
environ
[
'LD_LIBRARY_PATH'
].
strip
()
for
path
in
set
(
lib_path
.
split
(
':'
)):
try
:
if
isdir
(
path
):
print_header
(
f
"
{
path
}
CUDA PATHS"
)
paths
=
find_file_recursive
(
path
,
'*cuda*so'
)
print
(
paths
)
except
:
print
(
f
'Could not read LD_LIBRARY_PATH:
{
path
}
'
)
if
'LD_LIBRARY_PATH'
in
os
.
environ
:
lib_path
=
os
.
environ
[
'LD_LIBRARY_PATH'
].
strip
()
for
path
in
set
(
lib_path
.
split
(
':'
)):
try
:
if
isdir
(
path
):
print_header
(
f
"
{
path
}
CUDA PATHS"
)
paths
=
find_file_recursive
(
path
,
'*cuda*so'
)
print
(
paths
)
except
:
print
(
f
'Could not read LD_LIBRARY_PATH:
{
path
}
'
)
print
(
''
)
...
...
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