From 1761355f7a0bd0f99512c0c70d17ba32ce3bf664 Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sat, 29 Jul 2023 16:59:11 +0200 Subject: [PATCH] tweak arch and cpu feature naming --- .github/workflows/build.yml | 4 ++-- src/assets.rs | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 167f94b2..25a84577 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: Build on: [push, pull_request] jobs: - linux-x86-64: + linux: runs-on: ubuntu-latest permissions: contents: read @@ -136,7 +136,7 @@ jobs: release: runs-on: ubuntu-latest needs: - - linux-x86-64 + - linux - windows-x86-64 - macos-x86-64 - macos-aarch64 diff --git a/src/assets.rs b/src/assets.rs index 4b16be8c..a0d061dd 100644 --- a/src/assets.rs +++ b/src/assets.rs @@ -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(); } } @@ -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)]