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

[Intel compiler]Does the intel compiler support to compile windows driver?

Zhang_Tommy
Employee
497 Views

I am working on windows driver development, and I wonder if the Intel compiler can be used to accelerate the windows driver? For kernel mode driver maybe it is hard but for user mode driver it should be possible?

0 Kudos
6 Replies
Viet_H_Intel
Moderator
328 Views

Which compiler are you currently using for your development?

0 Kudos
Zhang_Tommy
Employee
313 Views

I am using the Intel C++ Compiler 2024 from Intel OneAPI Base Toolkit.

0 Kudos
Viet_H_Intel
Moderator
302 Views

If your “window driver” is C/C++ or Fortran code, then you can use Intel Compilers from oneAPI Toolkit

0 Kudos
Zhang_Tommy
Employee
289 Views

I am using C/C++ in my windows driver project. Attach a sample code that can reproduce the issue.

I tried to create a simple KMDF/UMDF driver with the default template in visual studio. Then I changed the platform toolset to Intel compiler, and then set the base platform toolset to WindowsKernelModeDriver10.0/WindowsUserModeDriver10.0.

However, when trying to build the driver after that, it failed with below error. Can you please help to check if there is any mistake in my steps? My simple test driver is attached in this email.

Severity

Code

Description

Project

File

Line

Suppression State

Details

Error

 

'ntddk.h' file not found

KMDFDriverIcxTest

C:\Users\hzhan71\source\repos\KMDFDriverIcxTest\KMDFDriverIcxTest\driver.h(17,10):

1

 

 

Error

 

'wdf.h' file not found

UMDFDriverIcxTest

C:\Users\hzhan71\source\repos\KMDFDriverIcxTest\UMDFDriverIcxTest\driver.h(18,10):

1

 

 

Steps to create a simple driver in VS2022:

Zhang_Tommy_0-1730859308924.png

 

 

 

0 Kudos
Viet_H_Intel
Moderator
235 Views
0 Kudos
Zhang_Tommy
Employee
204 Views

Yes, the project is a simple project which created from default KMDF driver template, it doesn't include my project code currently, and it compiles fine with MS compiler. You need to install WDK for Visual Studio to compile the sample code.

0 Kudos
Reply