File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ def get_compute_capabilities():
348
348
349
349
def evaluate_cuda_setup ():
350
350
cuda_setup = CUDASetup .get_instance ()
351
- suffix = ".so" if os . name != "nt" else ".dll"
351
+ suffix = { "Darwin" : ".dylib" , "Windows" : ".dll" }. get ( platform . system (), ".so" )
352
352
if 'BITSANDBYTES_NOWELCOME' not in os .environ or str (os .environ ['BITSANDBYTES_NOWELCOME' ]) == '0' :
353
353
cuda_setup .add_log_entry ('' )
354
354
cuda_setup .add_log_entry ('=' * 35 + 'BUG REPORT' + '=' * 35 )
Original file line number Diff line number Diff line change 9
9
10
10
libs = list (glob .glob ("./bitsandbytes/libbitsandbytes*.so" ))
11
11
libs += list (glob .glob ("./bitsandbytes/libbitsandbytes*.dll" ))
12
+ libs += list (glob .glob ("./bitsandbytes/libbitsandbytes*.dylib" ))
12
13
libs = [os .path .basename (p ) for p in libs ]
13
14
print ("libs:" , libs )
14
15
You can’t perform that action at this time.
0 commit comments