How to determine which gfortran is vectorized

I am trying to write massive parallel mono carlo code, part of which will be exported to the xeon phi coprocessor. To use the coprocessor effectively, I would like to see which parts of my code the compiler, currently gfortran, is able to vectorize. I understand that I can do this using commart -vec-report ifart. However, I will not have access to the coprocessor for about a month, and therefore I am stuck with gfortran at the moment. However, I would like to start optimizing, if possible. Unfortunately, I cannot find a command line flag for gfortran that tells me which part of the code is vectorized. There is one. If so, what is it?

thanks

+3
source share
2 answers

You can try if -fopt-info suits you.

You can get more results with -fopt-info-all , which includes information about successful and missed optimizations.

+2
source

The pointer can be instructed as detailed and indicate what it does:

-ftree-vectorizer-verbose=n

where a larger integer n means a more detailed report.

See http://gcc.gnu.org/projects/tree-ssa/vectorization.html for more details.

(It took me 1 minute to send it to Google).

+2
source

All Articles