Skip to content

Commit

Permalink
Hardcode windows
Browse files Browse the repository at this point in the history
  • Loading branch information
niclimcy committed Mar 19, 2023
1 parent 2c8352e commit d1cb979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions bitsandbytes/cuda_setup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ def run_cuda_setup(self):
self.generate_instructions()
self.print_log_stack()
raise Exception('CUDA SETUP: Setup Failed!')
self.lib = ct.cdll.LoadLibrary(binary_path)
self.lib = ct.cdll.LoadLibrary(str(binary_path))
else:
self.add_log_entry(f"CUDA SETUP: Loading binary {binary_path}...")
self.lib = ct.cdll.LoadLibrary(binary_path)
self.add_log_entry(f"CUDA SETUP: Loading binary {str(binary_path)}...")
self.lib = ct.cdll.LoadLibrary(str(binary_path))
except Exception as ex:
self.add_log_entry(str(ex))
self.print_log_stack()
Expand Down Expand Up @@ -360,6 +360,8 @@ def get_compute_capability(cuda):


def evaluate_cuda_setup():
binary_name = 'bitsandbytes_cuda120.dll'
return binary_name, None, None, None, None
if 'BITSANDBYTES_NOWELCOME' not in os.environ or str(os.environ['BITSANDBYTES_NOWELCOME']) == '0':
print('')
print('='*35 + 'BUG REPORT' + '='*35)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import glob
from glob import glob
import os

from setuptools import find_packages, setup

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

Expand Down

0 comments on commit d1cb979

Please sign in to comment.