Skip to content

Releases: stephenberry/bencher

v0.2.2

20 Jun 19:02

Choose a tag to compare

Bug-fix release: header portability and self-containment for cache_clearer.hpp.

Fixes

  • ARM/aarch64 Linux build failure. cache_clearer.hpp included <xmmintrin.h> unconditionally on Linux, but that is an x86-only SSE header and does not exist on ARM, so the build hard-failed. The include is now guarded behind __x86_64__/__i386__ (its only consumer, _mm_sfence, is in the x86 flush_cache branch); the ARM path already uses dc cvac / dsb.
  • Missing <vector> include. evict_l1_cache() (all platforms) and the Windows cache-size probe use std::vector but relied on it being included transitively. The header is now self-contained.

Verified compiling and running on ARM Linux (g++, -Wall -Wextra) and macOS (clang++, arm64); x86 behavior is unchanged.