Enable FP16 when compiling for IMG GPUs #4104
Workflow file for this run
This file contains 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
# https://github.com/marketplace/actions/run-on-architecture | |
name: Foreign architectures | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
multiarch: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- arch: armv7 | |
distro: ubuntu_latest | |
cxx_flags: -Wno-psabi | |
cmake_flags: -DHWY_CMAKE_ARM7:BOOL=ON | |
- arch: ppc64le | |
distro: ubuntu_latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build and test | |
uses: uraimo/run-on-arch-action@v3.0.0 | |
id: build | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ${{ matrix.distro }} | |
# Not required, but speeds up builds | |
githubToken: ${{ github.token }} | |
install: | | |
apt-get update -q -y | |
apt-get install -q -y --no-install-recommends \ | |
build-essential \ | |
cmake \ | |
libgtest-dev \ | |
ninja-build \ | |
; | |
run: | | |
export CMAKE_BUILD_PARALLEL_LEVEL=2 | |
export CTEST_PARALLEL_LEVEL=2 | |
CXXFLAGS=${{ matrix.cxx_flags }} cmake -GNinja ${{ matrix.cmake_flags }} -DHWY_SYSTEM_GTEST=ON -DHWY_WARNINGS_ARE_ERRORS=ON -B out . | |
cmake --build out | |
ctest --test-dir out | |
aarch64_cmake: | |
name: Build and test ${{ matrix.name }} on AArch64 | |
runs-on: ubuntu-24.04-arm | |
strategy: | |
matrix: | |
include: | |
- name: Clang-18 | |
extra_deps: clang-18 | |
c_compiler: clang-18 | |
cxx_compiler: clang++-18 | |
cxx_standard: 17 | |
- name: GCC-14 | |
extra_deps: g++-14 | |
c_compiler: gcc-14 | |
cxx_compiler: g++-14 | |
cxx_flags: -ftrapv | |
cxx_standard: 17 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit # cannot be block - runner does git checkout | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0 | |
- name: Install deps | |
run: sudo apt-get install ${{ matrix.extra_deps }} | |
- name: Build and test | |
run: | | |
export CMAKE_BUILD_PARALLEL_LEVEL=2 | |
export CTEST_PARALLEL_LEVEL=2 | |
CXXFLAGS="${{ matrix.cxx_flags }}" CC=${{ matrix.c_compiler }} CXX=${{ matrix.cxx_compiler }} cmake -DHWY_WARNINGS_ARE_ERRORS=ON -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} ${{ matrix.extra_cmake_flags }} -B out . | |
cmake --build out | |
ctest --test-dir out |