Skip to content

Commit

Permalink
support osx
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Feb 3, 2024
1 parent 35344df commit 24f91ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bitsandbytes/cuda_setup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def get_compute_capabilities():

def evaluate_cuda_setup():
cuda_setup = CUDASetup.get_instance()
suffix = ".so" if os.name != "nt" else ".dll"
suffix = { "Darwin": ".dylib", "Windows":".dll" }.get(platform.system(), ".so")
if 'BITSANDBYTES_NOWELCOME' not in os.environ or str(os.environ['BITSANDBYTES_NOWELCOME']) == '0':
cuda_setup.add_log_entry('')
cuda_setup.add_log_entry('='*35 + 'BUG REPORT' + '='*35)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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

Expand Down

0 comments on commit 24f91ce

Please sign in to comment.