Team Ai
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 21d agoView on Hugging Face
0likes1.2kdownloads
build-opencl.yml93 linesDownload Raw Back to workflows
1name: CI (opencl)2 3on:4  workflow_dispatch: # allows manual triggering5  push:6    branches:7      - master8    paths: [9      '.github/workflows/build-opencl.yml',10      '**/CMakeLists.txt',11      '**/.cmake',12      '**/*.h',13      '**/*.hpp',14      '**/*.c',15      '**/*.cpp',16      '**/*.cl'17    ]18 19  pull_request:20    types: [opened, synchronize, reopened]21    paths: [22      '.github/workflows/build-opencl.yml',23      'ggml/src/ggml-opencl/**'24    ]25 26concurrency:27  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}28  cancel-in-progress: true29 30env:31  GGML_NLOOP: 332  GGML_N_THREADS: 133  LLAMA_ARG_LOG_COLORS: 134  LLAMA_ARG_LOG_PREFIX: 135  LLAMA_ARG_LOG_TIMESTAMPS: 136 37jobs:38  windows-2025-opencl-adreno:39    runs-on: windows-202540 41    steps:42      - name: Clone43        id: checkout44        uses: actions/checkout@v645 46      - name: ccache47        uses: ggml-org/ccache-action@v1.2.2448        with:49          key: opencl-windows-2025-x6450          variant: ccache51          evict-old-files: 1d52          save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}53 54      - name: Install Ninja55        id: install_ninja56        run: |57          choco install ninja58 59      - name: Install OpenCL Headers and Libs60        id: install_opencl61        run: |62          git clone https://github.com/KhronosGroup/OpenCL-Headers63          cd OpenCL-Headers64          cmake -B build `65            -DBUILD_TESTING=OFF `66            -DOPENCL_HEADERS_BUILD_TESTING=OFF `67            -DOPENCL_HEADERS_BUILD_CXX_TESTS=OFF `68            -DCMAKE_INSTALL_PREFIX="$env:RUNNER_TEMP/opencl-arm64-release"69          cmake --build build --target install70          git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader71          cd OpenCL-ICD-Loader72          cmake -B build-arm64-release `73            -A arm64 `74            -DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/opencl-arm64-release" `75            -DCMAKE_INSTALL_PREFIX="$env:RUNNER_TEMP/opencl-arm64-release"76          cmake --build build-arm64-release --target install --config release77 78      - name: Build79        id: cmake_build80        run: |81          cmake -S . -B build -G "Ninja Multi-Config" -D CMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-llvm.cmake -DCMAKE_PREFIX_PATH="$env:RUNNER_TEMP/opencl-arm64-release" -DGGML_OPENCL=ON -DGGML_OPENCL_USE_ADRENO_KERNELS=ON -DLLAMA_BUILD_BORINGSSL=ON82          cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS}83 84      - name: ccache-clear85        uses: ./.github/actions/ccache-clear86        env:87          GH_TOKEN: ${{ github.token }}88        with:89          key: opencl-windows-2025-x6490          older: 5m91          min: 192          dry-run: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' }}93