-
-
Notifications
You must be signed in to change notification settings - Fork 845
Enable bitsandbytes packaging for ROCm #1299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Titus-von-Koeller
merged 27 commits into
bitsandbytes-foundation:multi-backend-refactor
from
ROCm:device_abstraction
Aug 2, 2024
Merged
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5891465
Add build job for rocm
pnunna93 d03a680
Add rocm build script
pnunna93 ec9000f
Copy shared obj file into output_dir
pnunna93 9b8c1da
upload build artifacts and enable wheels build
pnunna93 1413c5f
Remove cuda build temporarily
pnunna93 578b2f4
Merge pull request #38 from ROCm/enable_rocm_build_ci
pnunna93 fd655b0
Add ROCm version to .so filename
pnunna93 6b77f4c
Add rocm_version to whls build
pnunna93 78324b3
Revert "Remove cuda build temporarily"
pnunna93 c146b8b
Add rocm_version env var
pnunna93 953a383
Merge remote-tracking branch 'upstream/multi-backend-refactor' into e…
pnunna93 d6c3df4
Remove thrush header files
pnunna93 7e9a65c
Print node info
pnunna93 cdb209a
print cuda node info
pnunna93 77e1499
Revert "print cuda node info"
pnunna93 7c91909
Revert "Print node info"
pnunna93 b78b340
Add rocm arch to compile command
pnunna93 a62b9d4
Rename .so files to rocm
pnunna93 9059bff
Update default gpu arch
pnunna93 c5a406a
Skip cpu based igemmlt int tests on ROCm
pnunna93 9cbb5e1
Update Documentation
pnunna93 3580624
Update upstream repo name
pnunna93 3bde1b7
Update docs
pnunna93 b123125
Merge pull request #39 from ROCm/enable_rocm_whls
pnunna93 db1df72
Update string format
pnunna93 e498b4d
Remove pre-release option for torch install
pnunna93 7d2e027
Update pytorch install path
pnunna93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,21 @@ | ||
| #!/bin/bash | ||
| declare build_arch | ||
| declare build_os | ||
| declare rocm_version | ||
|
|
||
| set -xeuo pipefail | ||
| bnb_rocm_arch="gfx90a;gfx942;gfx1100" | ||
| if [ "${build_os:0:6}" == ubuntu ]; then | ||
| image=rocm/dev-ubuntu-22.04:6.1-complete | ||
| image=rocm/dev-ubuntu-22.04:${rocm_version}-complete | ||
| echo "Using image $image" | ||
| docker run --rm --platform "linux/$build_arch" -i \ | ||
| -w /src -v "$PWD:/src" "$image" sh -c \ | ||
| "apt-get update \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cmake \ | ||
| && cmake -DCOMPUTE_BACKEND=hip . \ | ||
| && cmake -DCOMPUTE_BACKEND=hip -DBNB_ROCM_ARCH=\"${bnb_rocm_arch}\" . \ | ||
| && cmake --build ." | ||
| fi | ||
|
|
||
| #output_dir="output/${build_os}/${build_arch}" | ||
| #mkdir -p "${output_dir}" | ||
| #(shopt -s nullglob && cp bitsandbytes/*.{so,dylib,dll} "${output_dir}") | ||
| output_dir="output/${build_os}/${build_arch}" | ||
| mkdir -p "${output_dir}" | ||
| (shopt -s nullglob && cp bitsandbytes/*.{so,dylib,dll} "${output_dir}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.