Adding support for building for AMD on Windows #1846
+56
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some pretty simple changes to get bitsandbytes to build for AMD ROCm on Windows. I've been running this for a few days for inference and training, and it seems to be working well. Running unit tests now.
How to build this:
Clone repo
Build and install
Build doesn't work with the Visual Studio compiler, so make sure ROCM_HOME is set to your ROCm root folder and that Ninja is installed
This should work with ROCm 7.1.1 or newer, including the TheRock nightly builds
PowerShell
Cmd
Then install
resolves #1844