Build of kernel drivers with Arch:AVX2 on WDK

DmitriO-9411 6 Reputation points
2025-08-12T04:23:42.05+00:00

Using VS2022 17.14.10 with WDK 10.0.26100.4202.

It has been noticed that AVX2 CPU instruction set is no longer supported for kernel driver builds. Only SSE2 seems to be supported. The compiler error:

cl : command line error D8016: '/arch:AVX2' and '/kernel' command-line options are incompatible

It was building fine on VS2019 16.11.46 with WDK 10.0.22621.0.

Could you confirm whether this is a bug or an expected behavior? Is there more details about that change in functionality?

Windows development | Windows Driver Kit (WDK)
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.