Skip to content

Commit cb17a4b

Browse files
committed
add dylib for osx
1 parent f4238a4 commit cb17a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitsandbytes/cuda_setup/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# we have libcudart.so.11.0 which causes a lot of errors before
3838
# not sure if libcudart.so.12.0 exists in pytorch installs, but it does not hurt
3939
CUDA_RUNTIME_LIBS = ["libcudart.so", "libcudart.so.11.0", "libcudart.so.12.0", "libcudart.so.12.1", "libcudart.so.12.2"]
40-
DYNAMIC_LIBRARY_SUFFIX = ".so"
40+
DYNAMIC_LIBRARY_SUFFIX = { "Darwin": ".dylib", "Windows":".dll" }.get(platform.system(), ".so")
4141

4242

4343
class CUDASetup:

0 commit comments

Comments
 (0)