The following command examples illustrate the general command needed to create HPO report with combined options.
Operating System |
Example Command |
---|---|
Linux* and Mac OS* X |
icpc -opt-report 0 -opt-report-phasehpo sample.cpp |
Windows* |
icl /Qopt-report:0 /Qopt-report-phase:hpo sample.cpp |
Use -opt-report-help (Linux and Mac OS X) or /Qopt-report-help (Windows) to list the names of HPO report categories.
You must specify different compiler options to use the specific HPO report categories.
For OpenMP*, add -openmp (Linux and Mac OS X) or /Qopenmp (Windows) to the command line.
For parallelism, add -parallel (Linux and Mac OS X) or /Qparallel (Windows) to the command line.
For vectorization, add -x (Linux and Mac OS X) or /Qx (Windows) to the command line; valid processor values are SSE4.1, SSSE3, SSE3, and SSE2.