From Jason Turner
Watch on YouTube

Summary

This episode demonstrates how to instruct compilers to leverage CPU-specific optimizations through compiler flags. Jason shows how to enable advanced vectorization with the -march=native flag in GCC/Clang and /arch:AVX2 in MSVC, resulting in significant performance improvements through SIMD instructions. He emphasizes the importance of understanding your deployment target's CPU architecture to make optimal use of available hardware capabilities like SSE and AVX.

Resources

Tags