Fleet changelogs · dev.ecs0.net
rdmpw3275m-changelog-20260901-1826-ccache-and-cascadelake-optimizations

rdmpw3275m-changelog-20260901-1826-ccache-and-cascadelake-optimizations

Configured ccache compiler wrappers (Option A), performance tuning, Cascade Lake compiler optimization flags, and Homebrew forced source build optimization on rdmpw3275m.

Scope

Exact Files Touched

Configuration Applied

~/.ccache/ccache.conf:

# ccache configuration - rdmpw3275m
max_size = 25.0G
base_dir = /Users/richh/dev
sloppiness = time_macros,include_file_mtime,include_file_ctime,file_macro
compression = true
compression_level = 1
compiler_check = content
inode_cache = true

~/.zshrc:

# --- ccache compiler wrappers (portable across Apple Silicon & Intel) ---
if command -v brew >/dev/null 2>&1; then
  _ccache_libexec="$(brew --prefix ccache 2>/dev/null)/libexec"
  if [[ -d "$_ccache_libexec" ]]; then
    path=("$_ccache_libexec" $path)
  fi
  unset _ccache_libexec
fi

# --- Cascade Lake architecture optimization flags ---
# Intel Xeon W-3275M (Cascade Lake: AVX-512F/DQ/CD/BW/VL/VNNI - 56 threads)
export CFLAGS="-march=cascadelake -mtune=cascadelake -O3 -pipe"
export CXXFLAGS="-march=cascadelake -mtune=cascadelake -O3 -pipe"
export RUSTFLAGS="-C target-cpu=cascadelake"
export MAKEFLAGS="-j$(sysctl -n hw.ncpu)"
export CMAKE_BUILD_PARALLEL_LEVEL="$(sysctl -n hw.ncpu)"
export HOMEBREW_MAKE_JOBS="$(sysctl -n hw.ncpu)"
export HOMEBREW_OPTIMIZATION_LEVEL="O3"
export HOMEBREW_OPTFLAGS="-march=cascadelake -mtune=cascadelake"
export HOMEBREW_ARCH="cascadelake"

# Homebrew source build aliases
alias brew-upgrade="brew upgrade --build-from-source --greedy"
alias brew-install="brew install --build-from-source"
alias brew-reinstall="brew reinstall --build-from-source"

Verification Evidence

  1. Evaluated environment exports:
    • HOMEBREW_MAKE_JOBS = 56
    • HOMEBREW_OPTIMIZATION_LEVEL = O3
    • HOMEBREW_OPTFLAGS = -march=cascadelake -mtune=cascadelake
    • HOMEBREW_ARCH = cascadelake
  2. Verified aliases: brew-upgrade, brew-install, brew-reinstall mapped to --build-from-source.
  3. Verified compiler resolution and AVX-512 VNNI test build.

How to Undo

Restore ~/.zshrc: cp ~/.zshrc.bak.20260901182023 ~/.zshrc and rm ~/.ccache/ccache.conf.