Skip to content

Commit

Permalink
tweak arch and cpu feature naming
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jul 29, 2023
1 parent c634b16 commit 1761355
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on: [push, pull_request]

jobs:
linux-x86-64:
linux:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
release:
runs-on: ubuntu-latest
needs:
- linux-x86-64
- linux
- windows-x86-64
- macos-x86-64
- macos-aarch64
Expand Down
9 changes: 5 additions & 4 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ bitflags! {
const AVX512 = 1 << 5;
const VNNI512 = 1 << 6;

// aarch64
const DOTPROD = 1 << 7;

const SF_SSE2 = Cpu::SSE2.bits();
const SF_SSE41_POPCNT = Cpu::SSE41.bits() | Cpu::POPCNT.bits();
const SF_AVX2 = Cpu::SF_SSE41_POPCNT.bits() | Cpu::AVX2.bits();
const SF_BMI2 = Cpu::SF_AVX2.bits() | Cpu::FAST_BMI2.bits();
const SF_AVX512 = Cpu::SF_BMI2.bits() | Cpu::AVX512.bits();
const SF_VNNI256 = Cpu::SF_AVX512.bits() | Cpu::VNNI512.bits(); // 256 bit operands

// aarch_64
const DOTPROD = 1 << 7;
const SF_NEON_DOTPROD = Cpu::DOTPROD.bits();
}
}

Expand Down Expand Up @@ -209,7 +210,7 @@ const STOCKFISH: &[Asset] = &[
Asset {
name: "stockfish-armv8-dotprod",
data: include_bytes!(concat!(env!("OUT_DIR"), "/stockfish-armv8-dotprod.xz")),
needs: Cpu::DOTPROD,
needs: Cpu::SF_NEON_DOTPROD,
executable: true,
},
#[cfg(stockfish_armv8)]
Expand Down

0 comments on commit 1761355

Please sign in to comment.