Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
790 Discussions

Compiler Optimization Report not available in Visual Studio 22

lorenzo0507
Beginner
2,225 Views

I've recently been trying to use the Intel oneAPI tools in Visual Studio 2022 for an HPC university project.

 

A tool that I'd like to use is the Compiler Optimization Report widget, which is supposed to show information generated by the optimization report for all the phases that it's divided into.

https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-10/optimization-reports-in-microsoft-visual-studio.html

(Documentation, the newest I could find, for the tool in question.)

 

I've set the compiler to generate an optimization report (and output it to a file - this works fine and I can access the new file after every compile), however both the COR and the Compiler Inline Report aren't picking up anything from the compilation process, leaving me with empty widgets as shown below.

lorenzo0507_0-1737046411517.png

lorenzo0507_1-1737046468311.png

I've dabbled around compile options and couldn't get it to work.
Apparently it's been reported broken in a forum post back in 2021, and marked as "solved" with a mod suggesting to use the command prompt instead, which is a bit disappointing to be honest.

 

Has anyone got this to work? Everything's updated to latest version, of course.

0 Kudos
3 Replies
suzumushi
Beginner
2,158 Views

Same situation.

I'm using VisualStudio 2022 and DPC++ 2025.0. Compiling the DPC++ console application with the /Qopt-report:1 option outputs the optrpt files correctly, but they are not displayed in the VisualStudio window.

 

What am I missing?

0 Kudos
Pocari
Beginner
1,591 Views

Dear Viet_H_Intel,

 

I am facing the same problem.
I searched the intel community and found this page.
If I understand correctly, you are saying that it is not a oneAPI problem, but that it is not supported by visual studio?

 

visual studio 2022 community version: 17.14.8

platform toolset: Intel C++ Compiler 2025

oneAPI version: 2025.2

Installed toolkits: base toolkit, HPCtoolkit (excluding fortran compiler)

Please let me know if there is any information I am missing.

 

I apologize for the unclear machine translation.

Best regards,

0 Kudos
Reply