[HIP] Bump ROCm version to 7.2.1 (#21066)
Bump ROCm version on Linux from 7.2 to 7.2.1 Add gfx1102 target Delete LLVM workaround since ROCm 7.2.1 has fix for ROCm 7.2 perf regression https://github.com/ROCm/rocm-systems/issues/2865 --------- Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
This commit is contained in:
parent
5208e2d5ba
commit
7c7d6ce5c7
4 changed files with 19 additions and 17 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
ARG UBUNTU_VERSION=24.04
|
ARG UBUNTU_VERSION=24.04
|
||||||
|
|
||||||
# This needs to generally match the container host's environment.
|
# This needs to generally match the container host's environment.
|
||||||
ARG ROCM_VERSION=7.2
|
ARG ROCM_VERSION=7.2.1
|
||||||
ARG AMDGPU_VERSION=7.2
|
ARG AMDGPU_VERSION=7.2.1
|
||||||
|
|
||||||
# Target the ROCm build image
|
# Target the ROCm build image
|
||||||
ARG BASE_ROCM_DEV_CONTAINER=rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION}-complete
|
ARG BASE_ROCM_DEV_CONTAINER=rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION}-complete
|
||||||
|
|
@ -12,11 +12,11 @@ FROM ${BASE_ROCM_DEV_CONTAINER} AS build
|
||||||
|
|
||||||
# Unless otherwise specified, we make a fat build.
|
# Unless otherwise specified, we make a fat build.
|
||||||
# This is mostly tied to rocBLAS supported archs.
|
# This is mostly tied to rocBLAS supported archs.
|
||||||
# check https://rocm.docs.amd.com/projects/install-on-linux/en/docs-7.2.0/reference/system-requirements.html
|
# check https://rocm.docs.amd.com/projects/install-on-linux/en/docs-7.2.1/reference/system-requirements.html
|
||||||
# check https://rocm.docs.amd.com/projects/radeon-ryzen/en/latest/docs/compatibility/compatibilityrad/native_linux/native_linux_compatibility.html
|
# check https://rocm.docs.amd.com/projects/radeon-ryzen/en/latest/docs/compatibility/compatibilityrad/native_linux/native_linux_compatibility.html
|
||||||
# check https://rocm.docs.amd.com/projects/radeon-ryzen/en/latest/docs/compatibility/compatibilityryz/native_linux/native_linux_compatibility.html
|
# check https://rocm.docs.amd.com/projects/radeon-ryzen/en/latest/docs/compatibility/compatibilityryz/native_linux/native_linux_compatibility.html
|
||||||
|
|
||||||
ARG ROCM_DOCKER_ARCH='gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1151;gfx1150;gfx1200;gfx1201'
|
ARG ROCM_DOCKER_ARCH='gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1150;gfx1200;gfx1201'
|
||||||
|
|
||||||
# Set ROCm architectures
|
# Set ROCm architectures
|
||||||
ENV AMDGPU_TARGETS=${ROCM_DOCKER_ARCH}
|
ENV AMDGPU_TARGETS=${ROCM_DOCKER_ARCH}
|
||||||
|
|
|
||||||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -941,7 +941,7 @@ jobs:
|
||||||
- name: Grab rocWMMA package
|
- name: Grab rocWMMA package
|
||||||
id: grab_rocwmma
|
id: grab_rocwmma
|
||||||
run: |
|
run: |
|
||||||
curl -o rocwmma.deb "https://repo.radeon.com/rocm/apt/7.2/pool/main/r/rocwmma-dev/rocwmma-dev_2.2.0.70200-43~24.04_amd64.deb"
|
curl -o rocwmma.deb "https://repo.radeon.com/rocm/apt/7.2.1/pool/main/r/rocwmma-dev/rocwmma-dev_2.2.0.70201-81~24.04_amd64.deb"
|
||||||
7z x rocwmma.deb
|
7z x rocwmma.deb
|
||||||
7z x data.tar
|
7z x data.tar
|
||||||
|
|
||||||
|
|
@ -984,7 +984,7 @@ jobs:
|
||||||
cmake -G "Unix Makefiles" -B build -S . `
|
cmake -G "Unix Makefiles" -B build -S . `
|
||||||
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
|
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
|
||||||
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
|
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
|
||||||
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-7.2.0/include/" `
|
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-7.2.1/include/" `
|
||||||
-DCMAKE_BUILD_TYPE=Release `
|
-DCMAKE_BUILD_TYPE=Release `
|
||||||
-DLLAMA_BUILD_BORINGSSL=ON `
|
-DLLAMA_BUILD_BORINGSSL=ON `
|
||||||
-DROCM_DIR="${env:HIP_PATH}" `
|
-DROCM_DIR="${env:HIP_PATH}" `
|
||||||
|
|
|
||||||
2
.github/workflows/hip-quality-check.yml
vendored
2
.github/workflows/hip-quality-check.yml
vendored
|
|
@ -35,7 +35,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-22-hip-quality-check:
|
ubuntu-22-hip-quality-check:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container: rocm/dev-ubuntu-22.04:7.2
|
container: rocm/dev-ubuntu-22.04:7.2.1
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
id: checkout
|
id: checkout
|
||||||
|
|
|
||||||
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
|
|
@ -639,8 +639,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- ROCM_VERSION: "7.2"
|
- ROCM_VERSION: "7.2.1"
|
||||||
gpu_targets: "gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1151;gfx1150;gfx1200;gfx1201"
|
gpu_targets: "gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1150;gfx1200;gfx1201"
|
||||||
build: 'x64'
|
build: 'x64'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -662,7 +662,7 @@ jobs:
|
||||||
sudo apt install -y build-essential git cmake wget
|
sudo apt install -y build-essential git cmake wget
|
||||||
|
|
||||||
- name: Setup Legacy ROCm
|
- name: Setup Legacy ROCm
|
||||||
if: matrix.ROCM_VERSION == '7.2'
|
if: matrix.ROCM_VERSION == '7.2.1'
|
||||||
id: legacy_env
|
id: legacy_env
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
|
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
|
||||||
|
|
@ -683,7 +683,7 @@ jobs:
|
||||||
sudo apt-get install -y libssl-dev rocm-hip-sdk
|
sudo apt-get install -y libssl-dev rocm-hip-sdk
|
||||||
|
|
||||||
- name: Setup TheRock
|
- name: Setup TheRock
|
||||||
if: matrix.ROCM_VERSION != '7.2'
|
if: matrix.ROCM_VERSION != '7.2.1'
|
||||||
id: therock_env
|
id: therock_env
|
||||||
run: |
|
run: |
|
||||||
wget https://repo.amd.com/rocm/tarball/therock-dist-linux-gfx1151-${{ matrix.ROCM_VERSION }}.tar.gz
|
wget https://repo.amd.com/rocm/tarball/therock-dist-linux-gfx1151-${{ matrix.ROCM_VERSION }}.tar.gz
|
||||||
|
|
@ -699,7 +699,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cmake -B build -S . \
|
cmake -B build -S . \
|
||||||
-DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \
|
-DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \
|
||||||
-DCMAKE_HIP_FLAGS="-mllvm --amdgpu-unroll-threshold-local=600" \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DGGML_BACKEND_DL=ON \
|
-DGGML_BACKEND_DL=ON \
|
||||||
-DGGML_NATIVE=OFF \
|
-DGGML_NATIVE=OFF \
|
||||||
|
|
@ -717,17 +716,20 @@ jobs:
|
||||||
id: tag
|
id: tag
|
||||||
uses: ./.github/actions/get-tag-name
|
uses: ./.github/actions/get-tag-name
|
||||||
|
|
||||||
|
- name: Get ROCm short version
|
||||||
|
run: echo "ROCM_VERSION_SHORT=$(echo '${{ matrix.ROCM_VERSION }}' | cut -d '.' -f 1,2)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Pack artifacts
|
- name: Pack artifacts
|
||||||
id: pack_artifacts
|
id: pack_artifacts
|
||||||
run: |
|
run: |
|
||||||
cp LICENSE ./build/bin/
|
cp LICENSE ./build/bin/
|
||||||
tar -czvf llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ matrix.ROCM_VERSION }}-${{ matrix.build }}.tar.gz --transform "s,./,llama-${{ steps.tag.outputs.name }}/," -C ./build/bin .
|
tar -czvf llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz --transform "s,./,llama-${{ steps.tag.outputs.name }}/," -C ./build/bin .
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ matrix.ROCM_VERSION }}-${{ matrix.build }}.tar.gz
|
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
|
||||||
name: llama-bin-ubuntu-rocm-${{ matrix.ROCM_VERSION }}-${{ matrix.build }}.tar.gz
|
name: llama-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
|
||||||
|
|
||||||
windows-hip:
|
windows-hip:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
|
@ -749,7 +751,7 @@ jobs:
|
||||||
- name: Grab rocWMMA package
|
- name: Grab rocWMMA package
|
||||||
id: grab_rocwmma
|
id: grab_rocwmma
|
||||||
run: |
|
run: |
|
||||||
curl -o rocwmma.deb "https://repo.radeon.com/rocm/apt/7.2/pool/main/r/rocwmma-dev/rocwmma-dev_2.2.0.70200-43~24.04_amd64.deb"
|
curl -o rocwmma.deb "https://repo.radeon.com/rocm/apt/7.2.1/pool/main/r/rocwmma-dev/rocwmma-dev_2.2.0.70201-81~24.04_amd64.deb"
|
||||||
7z x rocwmma.deb
|
7z x rocwmma.deb
|
||||||
7z x data.tar
|
7z x data.tar
|
||||||
|
|
||||||
|
|
@ -806,7 +808,7 @@ jobs:
|
||||||
cmake -G "Unix Makefiles" -B build -S . `
|
cmake -G "Unix Makefiles" -B build -S . `
|
||||||
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
|
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
|
||||||
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
|
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
|
||||||
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-7.2.0/include/ -Wno-ignored-attributes -Wno-nested-anon-types" `
|
-DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-7.2.1/include/ -Wno-ignored-attributes -Wno-nested-anon-types" `
|
||||||
-DCMAKE_BUILD_TYPE=Release `
|
-DCMAKE_BUILD_TYPE=Release `
|
||||||
-DGGML_BACKEND_DL=ON `
|
-DGGML_BACKEND_DL=ON `
|
||||||
-DGGML_NATIVE=OFF `
|
-DGGML_NATIVE=OFF `
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue