Releases: stephenberry/bencher
Releases · stephenberry/bencher
v0.2.2
Bug-fix release: header portability and self-containment for cache_clearer.hpp.
Fixes
- ARM/aarch64 Linux build failure.
cache_clearer.hppincluded<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 x86flush_cachebranch); the ARM path already usesdc cvac/dsb. - Missing
<vector>include.evict_l1_cache()(all platforms) and the Windows cache-size probe usestd::vectorbut 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.