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
04885664
Unverified
Commit
04885664
authored
Feb 28, 2024
by
Won-Kyu Park
Committed by
GitHub
Feb 27, 2024
Browse files
fix cudart*dll for Windows (#1064)
parent
1d709aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/cuda_setup/main.py
bitsandbytes/cuda_setup/main.py
+1
-1
No files found.
bitsandbytes/cuda_setup/main.py
View file @
04885664
...
@@ -30,7 +30,7 @@ from .env_vars import get_potentially_lib_path_containing_env_vars
...
@@ -30,7 +30,7 @@ from .env_vars import get_potentially_lib_path_containing_env_vars
DYNAMIC_LIBRARY_SUFFIX
=
{
"Darwin"
:
".dylib"
,
"Windows"
:
".dll"
,
"Linux"
:
".so"
}.
get
(
platform
.
system
(),
".so"
)
DYNAMIC_LIBRARY_SUFFIX
=
{
"Darwin"
:
".dylib"
,
"Windows"
:
".dll"
,
"Linux"
:
".so"
}.
get
(
platform
.
system
(),
".so"
)
if
platform
.
system
()
==
"Windows"
:
# Windows
if
platform
.
system
()
==
"Windows"
:
# Windows
CUDA_RUNTIME_LIBS
=
[
"
nv
cuda.dll"
]
CUDA_RUNTIME_LIBS
=
[
"cuda
rt64_110.dll"
,
"cudart64_12
.dll"
]
else
:
# Linux or other
else
:
# Linux or other
# these are the most common libs names
# these are the most common libs names
# libcudart.so is missing by default for a conda install with PyTorch 2.0 and instead
# libcudart.so is missing by default for a conda install with PyTorch 2.0 and instead
...
...
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