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*
734 Discussions

Compiler Optimization Report not available in Visual Studio 22

lorenzo0507
Beginner
326 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
2 Replies
suzumushi
Beginner
259 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
Reply