Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2154 Discussions

Compiler Optimization Report unavailable.

gfichterpicometrix_c
1,535 Views

It does not seem that the icpc compiler provides vectorization optimization reports like XE Compiler does.  This is the .optrpt file, which also is shown in the Compiler Optimization Report window in Visual Studio.  Is this reporting feature unavailable by design, or is it accessed in a new way?

0 Kudos
1 Solution
Gopika_Intel
Moderator
1,503 Views

Hi,

Thank you for reaching out. The issue is reproducible. In Visual studio, the compiler optimization report window is empty. Optimization report generation works in command prompt. Please follow the below steps.

In Linux:

 

icpc -qopt-report=1 -qopt-report-phase=vec test.cpp && cat test.optrpt
icc -qopt-report=1 -qopt-report-phase=vec test.c && cat test.optrpt

 

 

In Windows:

 

icl -Qopt-report:1 -Qopt-report-phase:vec test.cpp && cat test.optrpt

 

 

For more information : https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-auto-vectorization-tutorial/top/introduction-to-auto-vectorization.htmls

Hope this helps.

Regards

Gopika

 

View solution in original post

0 Kudos
6 Replies
Gopika_Intel
Moderator
1,504 Views

Hi,

Thank you for reaching out. The issue is reproducible. In Visual studio, the compiler optimization report window is empty. Optimization report generation works in command prompt. Please follow the below steps.

In Linux:

 

icpc -qopt-report=1 -qopt-report-phase=vec test.cpp && cat test.optrpt
icc -qopt-report=1 -qopt-report-phase=vec test.c && cat test.optrpt

 

 

In Windows:

 

icl -Qopt-report:1 -Qopt-report-phase:vec test.cpp && cat test.optrpt

 

 

For more information : https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-auto-vectorization-tutorial/top/introduction-to-auto-vectorization.htmls

Hope this helps.

Regards

Gopika

 

0 Kudos
gfichterpicometrix_c
1,495 Views

Thanks.  I hope the Visual Studio integration will be fixed. Also, the /Qopt-report-phase:vec option is listed as available by the /Qnextgen-diag, but the option is ignored with a warning.

0 Kudos
Alina_S_Intel
Employee
1,435 Views

Could you please indicate what version of Visual Studio you are using?

With oneAPI 2021.2, it seems that Visual Studio Version 16.7.2 works fine. The bug is reproducible with Version 16.8.3.


0 Kudos
Alina_S_Intel
Employee
1,430 Views

This bug is escalated to the development team.


0 Kudos
SantoshY_Intel
Moderator
1,306 Views

Hi,


The version against which you reported your issue is no longer targeted for fixes. Please check out the new versions of Intel oneAPI Toolkits for the latest features.


Thanks & Regards,

Santosh


0 Kudos
SantoshY_Intel
Moderator
1,242 Views

Hi,


We are closing this thread for now. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Santosh


0 Kudos
Reply