Skip to content

Use GCC14 on arm64 runner to enable SVE #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,25 @@ jobs:
- name: Install ImageMagick
run: sudo apt install imagemagick

- name: Install GCC 14
run: |
sudo apt-get update
sudo apt-get install -y gcc-14

- name: Build release
run: |
export CXX=g++
export CXX=g++-14
mkdir build_rel
cd build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
make install package -j4
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
make install -j4

- name: Build debug
run: |
export CXX=clang++
export CXX=g++-14
mkdir build_dbg
cd build_dbg
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON ..
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DASTCENC_ISA_NEON=ON DASTCENC_ISA_SVE_128=ON -DASTCENC_ISA_NONE=ON ..
make -j4

- name: Setup Python
Expand All @@ -108,14 +113,18 @@ jobs:
pip install numpy Pillow

- name: Run system tests
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
run: |
python ./Test/astc_test_functional.py --encoder none
python ./Test/astc_test_functional.py --encoder neon
python ./Test/astc_test_functional.py --encoder sve_128
python ./Test/astc_test_image.py --encoder none --test-set Small
python ./Test/astc_test_image.py --encoder neon --test-set Small
python ./Test/astc_test_image.py --encoder sve_128 --test-set Small

- name: Run unit tests
run: ctest --rerun-failed --output-on-failure
# GitHub is using Cobalt-100, which has 128-bit SVE so we cannot test sve_256 here
run: ctest -E test-unit-sve_256 --rerun-failed --output-on-failure
working-directory: build_rel

build-ubuntu-x64-clang:
Expand Down