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
a51840fa
Unverified
Commit
a51840fa
authored
Aug 04, 2023
by
Osma Suominen
Committed by
GitHub
Aug 04, 2023
Browse files
Robustness fix: don't break in case of directories without read permission
parent
18e827d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bitsandbytes/cuda_setup/main.py
bitsandbytes/cuda_setup/main.py
+5
-2
No files found.
bitsandbytes/cuda_setup/main.py
View file @
a51840fa
...
@@ -214,8 +214,11 @@ def get_cuda_runtime_lib_paths(candidate_paths: Set[Path]) -> Set[Path]:
...
@@ -214,8 +214,11 @@ def get_cuda_runtime_lib_paths(candidate_paths: Set[Path]) -> Set[Path]:
paths
=
set
()
paths
=
set
()
for
libname
in
CUDA_RUNTIME_LIBS
:
for
libname
in
CUDA_RUNTIME_LIBS
:
for
path
in
candidate_paths
:
for
path
in
candidate_paths
:
if
(
path
/
libname
).
is_file
():
try
:
paths
.
add
(
path
/
libname
)
if
(
path
/
libname
).
is_file
():
paths
.
add
(
path
/
libname
)
except
PermissionError
:
pass
return
paths
return
paths
...
...
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