3 Commits

Author SHA1 Message Date
  Matthew Douglas fad47f20cc
[ROCm] Update build targets (#1788) 1 month ago
  Matthew Douglas d3d8e73dd8 Bump dev version 1 month ago
  Matthew Douglas b48ecdb3c7 Release 0.48.2 1 month ago
4 changed files with 29 additions and 26 deletions
Split View
  1. +13
    -6
      .github/scripts/build-rocm.sh
  2. +14
    -18
      .github/workflows/python-package.yml
  3. +1
    -1
      bitsandbytes/__init__.py
  4. +1
    -1
      setup.py

+ 13
- 6
.github/scripts/build-rocm.sh View File

@@ -4,13 +4,20 @@ declare build_os
declare rocm_version

set -xeuo pipefail
bnb_rocm_arch="gfx90a;gfx942;gfx1100"
bnb_rocm_arch="gfx90a;gfx942;gfx1100;gfx1101"

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

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

if [ "${build_os:0:6}" == ubuntu ]; then
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 \
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 -DBNB_ROCM_ARCH=\"${bnb_rocm_arch}\" . \
&& cmake --build ."


+ 14
- 18
.github/workflows/python-package.yml View File

@@ -137,30 +137,26 @@ jobs:
matrix:
os: [ubuntu-22.04]
arch: [x86_64]
rocm_version:
["6.1.2", "6.2.4", "6.3.4", "6.4.4", "7.0"]
rocm_version: ["6.2.4", "6.3.4", "6.4.4", "7.0.2"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Clean up disk space
run: |
echo "Disk space before cleanup:"
df -h

# These are the biggest disk space hogs.
sudo rm -rf \
/usr/share/dotnet \
/opt/ghc \
"/usr/local/share/boost" \
"$AGENT_TOOLSDIRECTORY" \
/opt/hostedtoolcache \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/swift
/opt/hostedtoolcache/CodeQL \
/usr/lib/dotnet \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/lib/android \
/usr/share/swift

echo "Disk space after cleanup:"
df -h
- name: Build C++
run: bash .github/scripts/build-rocm.sh
env:


+ 1
- 1
bitsandbytes/__init__.py View File

@@ -75,4 +75,4 @@ __pdoc__ = {
"optim.optimizer.MockArgs": False,
}

__version__ = "0.48.2.dev0"
__version__ = "0.48.3.dev0"

+ 1
- 1
setup.py View File

@@ -31,7 +31,7 @@ class ExtBuildPy(build_py):


setup(
version="0.48.2.dev0",
version="0.48.3.dev0",
packages=find_packages(),
distclass=BinaryDistribution,
cmake_source_dir=".",


Loading…
Cancel
Save
Baidu
map