[php-src] PR #15159: Support AVX-512 builds on Windows
| From: | cmb69 | Date: | Mon, 29 Jul 2024 19:29:25 +0000 |
| Subject: | [php-src] PR #15159: Support AVX-512 builds on Windows | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27564@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15159
Author: cmb69
"Since limited support for
/arch:AVX512 was added in Visual Studio 2017, and
expanded in Visual Studio 2019"[1], we can safely offer this option, since PHP 8.4 is supposed
to build with Visual Studio 2022, and it is unlikely that someone tries to build PHP 8.4 with Visual
Studio, requesting AVX-512 support.
[1] <https://learn.microsoft.com/en-us/cpp/build/reference/arch-x64?view=msvc-170>
---
Note that this merely enables people to build for AVX-512; it doesn't change the default (that
is still used for official Windows builds), nor does it update CI (which uses AVX2; I don't
think AVX-512 is supported on hosted GH runners).
Also note that a full PHP build for AVX-512 succeeded, but apparently not even php -i
can be run. Coreinfo reports here:
````
AVX-512-F - Supports AVX-512 Foundation instructions
AVX-512-DQ - Supports AVX-512 double and quadword instructions
AVX-512-IFAMA - Supports AVX-512 integer Fused multiply-add instructions
AVX-512-PF - Supports AVX-512 prefetch instructions
AVX-512-ER - Supports AVX-512 exponential and reciprocal instructions
AVX-512-CD - Supports AVX-512 conflict detection instructions
AVX-512-BW - Supports AVX-512 byte and word instructions
AVX-512-VL - Supports AVX-512 vector length instructions
````
I'll look into this.