ggml: remove batch_norm_2d op #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-latest, macos-14] | |
| runs-on: ${{ matrix.os }} | |
| name: Build & Test on ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Dependencies (Linux) | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: | | |
| wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | |
| sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | |
| sudo apt-get update -y | |
| sudo apt-get install -y build-essential cmake g++ ninja-build mesa-vulkan-drivers vulkan-sdk | |
| - name: Dependencies (Windows) | |
| if: matrix.os == 'windows-latest' | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Configure (Linux) | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: > | |
| cmake . -B build -G Ninja | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VISP_CI=ON | |
| -D VISP_VULKAN=ON | |
| -D VISP_FMT_LIB=ON | |
| - name: Configure (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: > | |
| cmake . -B build -A x64 | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VISP_CI=ON | |
| - name: Configure (MacOS) | |
| if: matrix.os == 'macos-14' | |
| run: > | |
| cmake . -B build -G Ninja | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VISP_CI=ON | |
| -D GGML_METAL=OFF | |
| -D GGML_RPC=ON | |
| -D CMAKE_BUILD_RPATH="@loader_path" | |
| - name: Build | |
| run: cmake --build build --config Release | |
| # tests fail with vulkan/llvmpipe (runs out of memory or just wrong results) | |
| # - name: Test Vulkan | |
| # if: matrix.os == 'ubuntu-22.04' | |
| # working-directory: ./build | |
| # run: | | |
| # export GGML_VK_VISIBLE_DEVICES=0 | |
| # ctest --verbose | |
| - name: Test CPU | |
| if: matrix.os != 'ubuntu-22.04' | |
| working-directory: ./build | |
| run: ctest --verbose -C Release | |
| - name: Install | |
| run: cmake --install build --prefix install --config Release | |
| - name: Package | |
| working-directory: ./build | |
| run: cpack | |
| - name: Upload artifacts | |
| if: success() || failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: visioncpp-${{ matrix.os }} | |
| path: | | |
| ./build/*.tar.gz | |
| ./build/*.zip | |
| ./tests/results/*.png | |
| compression-level: 0 |