echodict/llama.cpp
version https://git-lfs.github.com/spec/v1 oid sha256:cfc44b7ba25614df70e6b65e3341cae0310163bd32fd31a6b928a542df433faf size 30786
0773
1name: HIP quality check2 3on:4 workflow_dispatch: # allows manual triggering5 push:6 branches:7 - master8 paths: [9 '.github/workflows/hip-quality-check.yml',10 '**/*.cu',11 '**/*.cuh',12 'scripts/hip/gcn-cdna-vgpr-check.py'13 ]14 15 pull_request:16 types: [opened, synchronize, reopened]17 paths: [18 '.github/workflows/hip-quality-check.yml',19 '**/*.cu',20 '**/*.cuh',21 'scripts/hip/gcn-cdna-vgpr-check.py'22 ]23 24concurrency:25 group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}26 cancel-in-progress: true27 28env:29 GGML_NLOOP: 330 GGML_N_THREADS: 131 LLAMA_LOG_COLORS: 132 LLAMA_LOG_PREFIX: 133 LLAMA_LOG_TIMESTAMPS: 134 35jobs:36 ubuntu-22-hip-quality-check:37 runs-on: ubuntu-22.0438 container: rocm/dev-ubuntu-22.04:7.2.139 steps:40 - name: Clone41 id: checkout42 uses: actions/checkout@v643 44 - name: Dependencies45 id: depends46 run: |47 sudo apt-get update48 sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libssl-dev python349 50 - name: ccache51 uses: ggml-org/ccache-action@v1.2.2152 with:53 key: ubuntu-22-hip-quality-check54 evict-old-files: 1d55 save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}56 57 - name: Build with Werror58 id: cmake_build59 run: |60 cmake -B build -S . \61 -DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \62 -DGPU_TARGETS=gfx942 \63 -DGGML_HIP=ON \64 -DGGML_HIP_EXPORT_METRICS=Off \65 -DCMAKE_HIP_FLAGS="-Werror -Wno-tautological-compare" \66 -DCMAKE_BUILD_TYPE=Release67 cd build68 make -j $(nproc)69 70 - name: Check for major VGPR spills71 id: vgpr_check72 run: |73 cmake -B build -S . \74 -DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \75 -DGPU_TARGETS=gfx908 \76 -DGGML_HIP=ON \77 -DGGML_HIP_EXPORT_METRICS=On \78 -DCMAKE_HIP_FLAGS="" \79 -DCMAKE_BUILD_TYPE=Release80 cd build81 make -j $(nproc) 2>&1 | tee metrics.log | grep -v 'Rpass-analysis=kernel-resource-usage\|remark:\|^$'82 python3 ../scripts/hip/gcn-cdna-vgpr-check.py metrics.log83 