As was metnioned in #84115 (comment)_, it would be relatively simple to recognize environment variables for disabling vector support--especially to help with testing.
Today, setting DOTNET_EnableAVX2=0 results in Vector256.IsHardwareAccelerated returning false and setting DOTNET_EnableHWIntrinsic=0 will result in Vector64.IsHardwareAccelerated and Vector.IsHardwareAccelerated returning false.
Instead of requiring those two environment variables to be set and used in different test runs, we could respect DOTNET_EnableVector128 and probably several others. This approach would make the test scenarios easier to reason about..
As was metnioned in #84115 (comment)_, it would be relatively simple to recognize environment variables for disabling vector support--especially to help with testing.
Today, setting
DOTNET_EnableAVX2=0results inVector256.IsHardwareAcceleratedreturningfalseand settingDOTNET_EnableHWIntrinsic=0will result inVector64.IsHardwareAcceleratedandVector.IsHardwareAcceleratedreturning false.Instead of requiring those two environment variables to be set and used in different test runs, we could respect
DOTNET_EnableVector128and probably several others. This approach would make the test scenarios easier to reason about..