Intel® oneAPI HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
2022 Discussions

Compiler Optimization Report unavailable.

gfichterpicometrix_c
896 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
864 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

6 Replies
Gopika_Intel
Moderator
865 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

 

gfichterpicometrix_c
856 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.

Alina_S_Intel
Employee
796 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.


Alina_S_Intel
Employee
791 Views

This bug is escalated to the development team.


SantoshY_Intel
Moderator
667 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


SantoshY_Intel
Moderator
603 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


Reply