echodict/llama.cpp
version https://git-lfs.github.com/spec/v1 oid sha256:cfc44b7ba25614df70e6b65e3341cae0310163bd32fd31a6b928a542df433faf size 30786
0773
1name: CI (vulkan)2 3on:4 workflow_dispatch: # allows manual triggering5 push:6 branches:7 - master8 paths: [9 '.github/workflows/build-vulkan.yml',10 '**/CMakeLists.txt',11 '**/.cmake',12 '**/*.h',13 '**/*.hpp',14 '**/*.c',15 '**/*.cpp',16 '**/*.comp',17 '**/*.glsl'18 ]19 20 pull_request:21 types: [opened, synchronize, reopened]22 paths: [23 '.github/workflows/build-vulkan.yml',24 'ggml/src/ggml-vulkan/**'25 ]26 27concurrency:28 group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}29 cancel-in-progress: true30 31env:32 GGML_NLOOP: 333 GGML_N_THREADS: 134 LLAMA_LOG_COLORS: 135 LLAMA_LOG_PREFIX: 136 LLAMA_LOG_TIMESTAMPS: 137 38jobs:39 ubuntu-24-vulkan-llvmpipe:40 runs-on: ubuntu-24.0441 42 steps:43 - name: Clone44 id: checkout45 uses: actions/checkout@v646 47 - name: ccache48 uses: ggml-org/ccache-action@v1.2.2149 with:50 key: ubuntu-24-vulkan-llvmpipe51 evict-old-files: 1d52 save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}53 54 - name: Dependencies55 id: depends56 run: |57 sudo add-apt-repository -y ppa:kisak/kisak-mesa58 sudo apt-get update -y59 sudo apt-get install -y build-essential mesa-vulkan-drivers libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libssl-dev60 61 - name: Get latest Vulkan SDK version62 id: vulkan_sdk_version63 run: |64 echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"65 66 - name: Use Vulkan SDK Cache67 uses: actions/cache@v568 id: cache-sdk69 with:70 path: ./vulkan_sdk71 key: vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }}72 73 - name: Setup Vulkan SDK74 if: steps.cache-sdk.outputs.cache-hit != 'true'75 uses: ./.github/actions/linux-setup-vulkan76 with:77 path: ./vulkan_sdk78 version: ${{ env.VULKAN_SDK_VERSION }}79 80 - name: Build81 id: cmake_build82 run: |83 source ./vulkan_sdk/setup-env.sh84 cmake -B build \85 -DGGML_VULKAN=ON86 cmake --build build --config Release -j $(nproc)87 88 - name: Test89 id: cmake_test90 run: |91 cd build92 export GGML_VK_VISIBLE_DEVICES=093 export GGML_VK_DISABLE_F16=194 export GGML_VK_DISABLE_COOPMAT=195 # This is using llvmpipe and runs slower than other backends96 # test-backend-ops is too slow on llvmpipe, skip it97 ctest -L main -E test-backend-ops --verbose --timeout 90098 