3 ms·
Interestingly knowing vector intrinsics is exactly what optimising compilers are good at. The article even shows that - look at the C++ code - no instrisics in
by qayxc 5y ago
Interestingly knowing vector intrinsics is exactly what optimising compilers are good at.
The article even shows that - look at the C++ code - no instrisics in sight, just pure basic C++ getting the optimisation and performance from the compiler alone.
- saagarjha 5y agoYou probably want to look at the kernels themselves: https://github.com/HazyResearch/blocking-tutorial/blob/master/matrix_kernel16_6.c https://github.com/HazyResearch/blocking-tutorial/blob/maste...
- qayxc 5y agoI was referring to https://github.com/HazyResearch/blocking-tutorial/blob/master/compare_blas.cpp https://github.com/HazyResearch/blocking-tutorial/blob/maste... which upon closer inspection uses intrinsics in the inner loop, but to a much lesser degree and arguably specifying -mavx2 -mfma compiler options would yield comparable results...