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
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():
...
@@ -63,15 +63,16 @@ def generate_bug_report_information():
print
(
''
)
print
(
''
)
print_header
(
"LD_LIBRARY CUDA PATHS"
)
print_header
(
"LD_LIBRARY CUDA PATHS"
)
lib_path
=
os
.
environ
[
'LD_LIBRARY_PATH'
].
strip
()
if
'LD_LIBRARY_PATH'
in
os
.
environ
:
for
path
in
set
(
lib_path
.
split
(
':'
)):
lib_path
=
os
.
environ
[
'LD_LIBRARY_PATH'
].
strip
()
try
:
for
path
in
set
(
lib_path
.
split
(
':'
)):
if
isdir
(
path
):
try
:
print_header
(
f
"
{
path
}
CUDA PATHS"
)
if
isdir
(
path
):
paths
=
find_file_recursive
(
path
,
'*cuda*so'
)
print_header
(
f
"
{
path
}
CUDA PATHS"
)
print
(
paths
)
paths
=
find_file_recursive
(
path
,
'*cuda*so'
)
except
:
print
(
paths
)
print
(
f
'Could not read LD_LIBRARY_PATH:
{
path
}
'
)
except
:
print
(
f
'Could not read LD_LIBRARY_PATH:
{
path
}
'
)
print
(
''
)
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