- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try to use DPC++ for my solution (Windows11/VS2022 - latest update). I noticed that it takes extrem long to compile the complete solution. My guess is that it is because the compiler does not use precompiled headers - there is no option in the project settings to enable it (other than for MSVC and ICX).
Intel C++ 2023:
Intel DPC++ 2023 - no Precompiled Headers:
Is there any way to improve the compiler-performance of DPC++?
Thanks,
Daniel
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
Could you please try adding the /Yu flag in the command line options in Visual Studio properties which tells the compiler to use a precompiled header file?
Please refer to the below link for more details.
Please let us know if you still face any issues.
Thanks and Regards,
Pendyala Sesha Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Pendyala,
thanks for your fast reply. I added /Yu with the filename of the pch and see now this error:
5> error: Assume convergent functions was disabled in PCH file but is currently ena
bled
5> error: PCH file was compiled for the target 'x86_64-pc-windows-msvc19.35.32217' but the current translation unit is being compiled for target 'spir64-unknown-unknown'
5> 2 errors generated.
5> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel(R) oneAPI DPC++ Compiler 2023\Toolset.targets(192,5): error MSB6006: "icx-cl.exe" exited with code 1.
Any idea what I'm doing wrong?
Thanks,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We were able to reproduce your issue. We are working on this internally.
We will get back to you soon.
Thanks and Regards,
Pendyala Sesha Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry to let you know, the error you are seeing is a bug that has existed since the initial release of the oneAPI product, we have informed the development team about it.
At present, we do not have any workarounds. We are not sure of ETA. We will let you know once the bug is fixed.
Regarding the Precompiled Headers option in VS DPC++ project, we can also add the option in project properties once the issue is fixed in the compiler.
Thanks and Regards,
Pendyala Sesha Srinivas
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page