As exemplified by Jed Brown's answer to Costs of lookups versus calculations, using vectorized vs non-vectorized floating point operations results in much faster code. Many modern compilers claim that they can perform automatic vectorization. How do I which parts of my code are being successfully vectorized?
Tell me more
×
Computational Science Stack Exchange is a question and answer site for
scientists using computers to solve scientific problems. It's 100% free, no registration required.
|
With the Intel compiler of any modern vintage, The GNU page on vectorization says that it's on by default at optimization level 3, but I can't find the equivalent of vec-report. |
|||||||||||||
|
|
With GNU compilers, adding With Intel compilers, adding You can then inspect the assembly code and look for vector float point operations. |
|||
|
|
Within the GNU compiler collection, you have the option |
|||
|
|