1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
# ubuntu = x86_64 (exercises the SSE4.1/AVX2 SIMD paths, the prefetch
# fix, and the cross-SIMD-width determinism test); macos = arm64 (NEON).
os:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: clippy (lib + tests)
run: cargo clippy --lib --tests -- -D warnings
- name: build (all targets)
run: cargo build --all-targets
- name: test
run: cargo test --release
# Run the cross-SIMD-width determinism tests under Intel SDE so the AVX-512
# argmin and AVX-512BW packed-scan paths actually execute (and are checked
# against the scalar oracle) even though GitHub runners may lack AVX-512
# hardware. The `widths_agree` filter matches both
# test_simd_widths_agree_with_scalar and test_packed_scan_widths_agree_with_scalar.
avx512:
name: avx512 (SDE emulation)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# v5.0 installs SDE 10.8.0. SDE 9.33 (the v2.4 default) predates current
# rustc codegen and SIGSEGVs on binaries that run fine on real AVX-512
# hardware and under SDE 10.8.0 (verified on an Intel Xeon w/ avx512bw).
- uses: petarpetrovt/setup-sde@v5.0
- name: Build tests
run: cargo test --release --no-run
- name: cross-impl determinism under emulated AVX-512 (Sapphire Rapids)
run: ${SDE_PATH}/sde64 -spr -- cargo test --release widths_agree -- --nocapture