Skip to content

Commit 24f91ce

Browse files
committed
support osx
1 parent 35344df commit 24f91ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bitsandbytes/cuda_setup/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def get_compute_capabilities():
348348

349349
def evaluate_cuda_setup():
350350
cuda_setup = CUDASetup.get_instance()
351-
suffix = ".so" if os.name != "nt" else ".dll"
351+
suffix = { "Darwin": ".dylib", "Windows":".dll" }.get(platform.system(), ".so")
352352
if 'BITSANDBYTES_NOWELCOME' not in os.environ or str(os.environ['BITSANDBYTES_NOWELCOME']) == '0':
353353
cuda_setup.add_log_entry('')
354354
cuda_setup.add_log_entry('='*35 + 'BUG REPORT' + '='*35)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
libs = list(glob.glob("./bitsandbytes/libbitsandbytes*.so"))
1111
libs += list(glob.glob("./bitsandbytes/libbitsandbytes*.dll"))
12+
libs += list(glob.glob("./bitsandbytes/libbitsandbytes*.dylib"))
1213
libs = [os.path.basename(p) for p in libs]
1314
print("libs:", libs)
1415

0 commit comments

Comments
 (0)