@@ -639,8 +639,8 @@ jobs:
639639 strategy :
640640 matrix :
641641 include :
642- - ROCM_VERSION : " 7.2"
643- gpu_targets : " gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1151;gfx1150;gfx1200;gfx1201"
642+ - ROCM_VERSION : " 7.2.1 "
643+ gpu_targets : " gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102; gfx1151;gfx1150;gfx1200;gfx1201"
644644 build : ' x64'
645645
646646 steps :
@@ -662,7 +662,7 @@ jobs:
662662 sudo apt install -y build-essential git cmake wget
663663
664664 - name : Setup Legacy ROCm
665- if : matrix.ROCM_VERSION == '7.2'
665+ if : matrix.ROCM_VERSION == '7.2.1 '
666666 id : legacy_env
667667 run : |
668668 sudo mkdir --parents --mode=0755 /etc/apt/keyrings
@@ -683,7 +683,7 @@ jobs:
683683 sudo apt-get install -y libssl-dev rocm-hip-sdk
684684
685685 - name : Setup TheRock
686- if : matrix.ROCM_VERSION != '7.2'
686+ if : matrix.ROCM_VERSION != '7.2.1 '
687687 id : therock_env
688688 run : |
689689 wget https://repo.amd.com/rocm/tarball/therock-dist-linux-gfx1151-${{ matrix.ROCM_VERSION }}.tar.gz
@@ -699,7 +699,6 @@ jobs:
699699 run : |
700700 cmake -B build -S . \
701701 -DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \
702- -DCMAKE_HIP_FLAGS="-mllvm --amdgpu-unroll-threshold-local=600" \
703702 -DCMAKE_BUILD_TYPE=Release \
704703 -DGGML_BACKEND_DL=ON \
705704 -DGGML_NATIVE=OFF \
@@ -717,17 +716,20 @@ jobs:
717716 id : tag
718717 uses : ./.github/actions/get-tag-name
719718
719+ - name : Get ROCm short version
720+ run : echo "ROCM_VERSION_SHORT=$(echo '${{ matrix.ROCM_VERSION }}' | cut -d '.' -f 1,2)" >> $GITHUB_ENV
721+
720722 - name : Pack artifacts
721723 id : pack_artifacts
722724 run : |
723725 cp LICENSE ./build/bin/
724- 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 .
726+ 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 .
725727
726728 - name : Upload artifacts
727729 uses : actions/upload-artifact@v6
728730 with :
729- path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ matrix.ROCM_VERSION }}-${{ matrix.build }}.tar.gz
730- name : llama-bin-ubuntu-rocm-${{ matrix.ROCM_VERSION }}-${{ matrix.build }}.tar.gz
731+ path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
732+ name : llama-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
731733
732734 windows-hip :
733735 runs-on : windows-2022
@@ -749,7 +751,7 @@ jobs:
749751 - name : Grab rocWMMA package
750752 id : grab_rocwmma
751753 run : |
752- 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"
754+ 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"
753755 7z x rocwmma.deb
754756 7z x data.tar
755757
@@ -806,7 +808,7 @@ jobs:
806808 cmake -G "Unix Makefiles" -B build -S . `
807809 -DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
808810 -DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
809- -DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-7.2.0 /include/ -Wno-ignored-attributes -Wno-nested-anon-types" `
811+ -DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-7.2.1 /include/ -Wno-ignored-attributes -Wno-nested-anon-types" `
810812 -DCMAKE_BUILD_TYPE=Release `
811813 -DGGML_BACKEND_DL=ON `
812814 -DGGML_NATIVE=OFF `
0 commit comments