Skip to content

Commit

Permalink
make simplifying assumption explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Titus-von-Koeller committed Feb 23, 2024
1 parent 8fe3cb3 commit 84f1ab6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bitsandbytes/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
from .nvidia import CudaBackend

_backend = CudaBackend(lib)
# TODO: this should actually be done in `cextension.py` and potentially with .get_instance()
# for now this is just a simplifying assumption
#
# Notes from Tim:
# backend = CUDABackend.get_instance()
# -> CUDASetup -> lib -> backend.clib = lib

0 comments on commit 84f1ab6

Please sign in to comment.