@@ -969,6 +969,10 @@ jobs:
969969  windows-latest-cmake-hip :
970970    runs-on : windows-latest 
971971
972+     strategy :
973+       matrix :
974+         gpu_target : ${{ github.event.inputs.create_release == 'true' && '[gfx1100, gfx1101, gfx1030]' || '[gfx1100]' }} 
975+ 
972976    steps :
973977      - name : Clone 
974978        id : checkout 
@@ -994,8 +998,38 @@ jobs:
994998        run : | 
995999          $env:HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path) 
9961000          $env:CMAKE_PREFIX_PATH="${env:HIP_PATH}" 
997-           cmake -G "Unix Makefiles" -B build -S . -DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" -DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" -DGGML_HIPBLAS=ON 
998-           cmake --build build --config Release 
1001+           cmake -G "Unix Makefiles" -B build -S . -DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" -DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" -DGGML_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DGPU_TARGETS=${{ matrix.gpu_target }} -DGGML_RPC=ON 
1002+           cmake --build build -j ${env:NUMBER_OF_PROCESSORS} 
1003+           md "build\bin\rocblas\library\" 
1004+           cp "${env:HIP_PATH}\bin\hipblas.dll" "build\bin\" 
1005+           cp "${env:HIP_PATH}\bin\rocblas.dll" "build\bin\" 
1006+           cp "${env:HIP_PATH}\bin\rocblas\library\*" "build\bin\rocblas\library\" 
1007+ 
1008+        - name : Determine tag name 
1009+         id : tag 
1010+         shell : bash 
1011+         run : | 
1012+           BUILD_NUMBER="$(git rev-list --count HEAD)" 
1013+           SHORT_HASH="$(git rev-parse --short=7 HEAD)" 
1014+           if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then 
1015+             echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT 
1016+           else 
1017+             SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-') 
1018+             echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT 
1019+           fi 
1020+ 
1021+        - name : Pack artifacts 
1022+         id : pack_artifacts 
1023+         if : ${{ github.event.inputs.create_release == 'true' }} 
1024+         run : | 
1025+           7z a llama-${{ steps.tag.outputs.name }}-bin-win-hip-x64-${{ matrix.gpu_target }}.zip .\build\bin\* 
1026+ 
1027+        - name : Upload artifacts 
1028+         if : ${{ github.event.inputs.create_release == 'true' }} 
1029+         uses : actions/upload-artifact@v4 
1030+         with :
1031+           path : llama-${{ steps.tag.outputs.name }}-bin-win-hip-x64-${{ matrix.gpu_target }}.zip 
1032+           name : llama-bin-win-hip-x64-${{ matrix.gpu_target }}.zip 
9991033
10001034  ios-xcode-build :
10011035    runs-on : macos-latest 
@@ -1060,6 +1094,7 @@ jobs:
10601094      - macOS-latest-cmake 
10611095      - windows-latest-cmake 
10621096      - windows-latest-cmake-cuda 
1097+       - windows-latest-cmake-hip 
10631098      - macOS-latest-cmake-arm64 
10641099      - macOS-latest-cmake-x64 
10651100
0 commit comments