How to compile https://github.com/ROCmSoftwarePlatform/bitsandbytes? #3120
-
I saw on the ROCm blogs that to install bitsandbytes for ROCm GPUs:
However, the rocm_enabled branch of bitsandbytes does not seem to run the make hip command:
I also tried compiling according to the README at https://github.com/ROCm/bitsandbytes.git, but that wasn't successful either. How can I compile https://github.com/ROCmSoftwarePlatform/bitsandbytes? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There are Why there is no |
Beta Was this translation helpful? Give feedback.
-
@liangyong928 I wrote up a more thorough explanation of what's going on here. Unsurprisingly, it is mainly a documentation issue. Assuming you're on ROCm 6.x, you'll want to be using the branch |
Beta Was this translation helpful? Give feedback.
There are
Makefile
s in other branches. E.g.,rocm6.2_internal_testing
(link), although I don't think dropping it straight into therocm_enabled
branch works. I know you'd have to change line 30 fromFILES_CPP := $(CSRC)/common.cpp $(CSRC)/cpu_ops.cpp $(CSRC)/pythonInterface.c
toFILES_CPP := $(CSRC)/common.cpp $(CSRC)/cpu_ops.cpp $(CSRC)/pythonInterface.cpp
, since that file is different between these branches. There are likely other tweaks you'd have to make as well, but I'm also currently working through this.Why there is no
Makefile
in therocm_enabled
branch though, I have no idea.