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

Compiler Optimization Report not available in Visual Studio 22

lorenzo0507
Beginner
2,719 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
5 Replies
suzumushi
Beginner
2,652 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
2,085 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
yzh_intel
Moderator
237 Views

Hi all, currently only loop based optimizations are supported in the integration of dpc++ compiler with visual studio, could you verify if this is your case? If not, could you please provide a reproducer that demonstrates the issue, thanks!

0 Kudos
SiliconSignals
Beginner
195 Views

You're not doing anything wrong here, this is effectively a known limitation/bug of the current oneAPI C++ integration with VS 2022, and the COR/Inline Report windows often stay empty even though the *.optrpt files are generated correctly.

0 Kudos
Reply