Skip to content

Commit cf68bf5

Browse files
ROCm: Add build for ROCm 7.1 (#1807)
* ROCm: Add build for ROCm 7.1 * Use newer CMake from PyPI for ROCm build
1 parent 5c0a0a9 commit cf68bf5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/scripts/build-rocm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ set -xeuo pipefail
77
bnb_rocm_arch="gfx90a;gfx942;gfx1100;gfx1101"
88

99
# ROCm 6.4+ - Add gfx1200/gfx1201. Note we assume >=6.4.1.
10-
[[ "${rocm_version}" == 6.4.* || "${rocm_version}" == 7.*.* ]] && bnb_rocm_arch="${bnb_rocm_arch};gfx1200;gfx1201"
10+
[[ "${rocm_version}" == 6.4.* || "${rocm_version}" == 7.* ]] && bnb_rocm_arch="${bnb_rocm_arch};gfx1200;gfx1201"
1111

1212
# ROCm 7.0+ - Add gfx950
13-
[[ "${rocm_version}" == 7.*.* ]] && bnb_rocm_arch="${bnb_rocm_arch};gfx950"
13+
[[ "${rocm_version}" == 7.* ]] && bnb_rocm_arch="${bnb_rocm_arch};gfx950"
1414

1515
if [ "${build_os:0:6}" == ubuntu ]; then
1616
image=rocm/dev-ubuntu-22.04:${rocm_version}-complete
1717
echo "Using image $image"
1818
docker run --rm --platform "linux/$build_arch" -i \
1919
-w /src -v "$PWD:/src" "$image" sh -c \
2020
"apt-get update \
21-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cmake \
21+
&& pip install cmake==3.31.6 \
2222
&& cmake -DCOMPUTE_BACKEND=hip -DBNB_ROCM_ARCH=\"${bnb_rocm_arch}\" . \
2323
&& cmake --build ."
2424
fi

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
matrix:
138138
os: [ubuntu-22.04]
139139
arch: [x86_64]
140-
rocm_version: ["6.2.4", "6.3.4", "6.4.4", "7.0.2"]
140+
rocm_version: ["6.2.4", "6.3.4", "6.4.4", "7.0.2", "7.1"]
141141
runs-on: ${{ matrix.os }}
142142
steps:
143143
- uses: actions/checkout@v4

docs/source/installation.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ The currently distributed preview `bitsandbytes` are built with the following co
196196
| **Linux x86-64** | 6.3.4 | CDNA: gfx90a, gfx942 / RDNA: gfx1100, gfx1101
197197
| **Linux x86-64** | 6.4.4 | CDNA: gfx90a, gfx942 / RDNA: gfx1100, gfx1101, gfx1200, gfx1201
198198
| **Linux x86-64** | 7.0.2 | CDNA: gfx90a, gfx942, gfx950 / RDNA: gfx1100 / gfx1101 / gfx1200 / gfx1201
199+
| **Linux x86-64** | 7.1.0 | CDNA: gfx90a, gfx942, gfx950 / RDNA: gfx1100 / gfx1101 / gfx1200 / gfx1201
199200

200201
**Windows is not currently supported.**
201202

0 commit comments

Comments
 (0)