Build of kernel drivers with Arch:AVX2 on WDK
DmitriO-9411
6
Reputation points
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)
Sign in to answer