Skip to content

Respect environment variables for disabling Vector support #84461

@jeffhandley

Description

@jeffhandley

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..

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions