Skip to content

Commit

Permalink
GHA, take two
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed May 21, 2024
1 parent a774544 commit 727690e
Showing 1 changed file with 52 additions and 6 deletions.
58 changes: 52 additions & 6 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,51 +26,88 @@ jobs:
- name: dry-run-pspamm
run: |
set +e
pspamm-generator
retcode=$?
set -e
if [ $retcode -ne 2 ]; then
echo "Unexpected exit code."
exit 1
fi
echo "Success!"
pspamm-codegen-avx:
name: pspamm-codegen-avx
runs-on: ubuntu-22.04
needs: install-pspamm
steps:
- name: apt-get
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install g++
- name: checkout-pspamm
uses: actions/checkout@v4

- name: setup-qemu
uses: docker/setup-qemu-action@v3

- name: run-pspamm-tests
run: |
cd tests/
python tests/unit_tests_hsw.py
g++ -mavx2 tests/build/hsw_testsuite.cpp
python unit_tests_hsw.py
g++ -mavx2 build/hsw_testsuite.cpp
qemu-x86_64-static -cpu max build/hsw-test
pspamm-codegen-avx512:
name: pspamm-codegen-avx512
runs-on: ubuntu-22.04
needs: install-pspamm
steps:
- name: apt-get
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install g++
- name: checkout-pspamm
uses: actions/checkout@v4

- name: setup-qemu
uses: docker/setup-qemu-action@v3

- name: run-pspamm-tests
run: |
cd tests/
python tests/unit_tests_knl.py
g++ -mavx512f tests/build/knl_testsuite.cpp
python unit_tests_knl.py
g++ -mavx512f build/knl_testsuite.cpp
qemu-x86_64-static -cpu max build/knl-test
pspamm-codegen-aarch64:
name: pspamm-codegen-aarch64
runs-on: ubuntu-22.04
needs: install-pspamm
steps:
- name: apt-get
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install g++-aarch64-linux-gnu
- name: checkout-pspamm
uses: actions/checkout@v4

- name: setup-qemu
uses: docker/setup-qemu-action@v3

- name: run-pspamm-tests
run: |
cd tests/
python tests/unit_tests_arm.py
aarch64-linux-gnu-g++ -static -march=armv8.2-a tests/build/arm_testsuite.cpp
python unit_tests_arm.py
aarch64-linux-gnu-g++ -static -march=armv8.2-a build/arm_testsuite.cpp
qemu-aarch64-static -cpu max build/arm-test
pspamm-codegen-armsve:
Expand All @@ -87,6 +124,15 @@ jobs:
- 1024
- 2048
steps:
- name: apt-get
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install g++-aarch64-linux-gnu
- name: checkout-pspamm
uses: actions/checkout@v4

- name: setup-qemu
uses: docker/setup-qemu-action@v3

Expand Down

0 comments on commit 727690e

Please sign in to comment.