This document explains how to verify that Spack is correctly configured for architecture-specific optimizations on this system.
- CPU Model: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
- Architecture Target: x86_64
- Compiler Flags: -march=native -mtune=native -O3 -mavx2
Run the following commands to verify the architecture-specific configuration:
source /opt/spack/share/spack/setup-env.sh
spack archThis shows the complete architecture specification Spack is using.
source /opt/spack/share/spack/setup-env.sh
spack arch --known-targetsThis displays all microarchitecture targets Spack recognizes for your system.
source /opt/spack/share/spack/setup-env.sh
spack compiler info gccThis shows the compiler configuration, including optimization flags.
cat /opt/spack/etc/spack/config.yaml
cat /opt/spack/etc/spack/packages.yaml
cat /opt/spack/etc/spack/compilers.yamlThese files show the architecture-specific settings that were applied.
source /opt/spack/share/spack/setup-env.sh
spack install --verbose openmpiThe verbose output shows the exact compiler flags used during compilation.
source /opt/spack/share/spack/setup-env.sh
spack spec -I openmpiThis shows the complete specification for how OpenMPI would be built.
- The architecture should match your CPU (x86_64)
- Compiler flags should include architecture-specific optimizations (-march=native -mtune=native -O3 -mavx2)
- Package specs should show these optimizations are being applied