Skip to content

Missing CI test coverage for Vector512 #88233

Closed
@MihaZupan

Description

@MihaZupan

The following test passed CI without any errors in #88166:

[Fact]
[MethodImpl(MethodImplOptions.AggressiveOptimization)]
public static void SanityCheckAO()
{
    if (Vector512.IsHardwareAccelerated && Avx512BW.IsSupported)
        throw new Exception("Yay?");
}

Dumping the CpuId, it looks like all processors in CI that report Avx512BW.IsSupported == true also report isGenuineIntel=True familyID=6 extendedModelID=5 model=5.

if (xarchCpuInfo.FamilyId == 0x06)
{
if (xarchCpuInfo.ExtendedModelId == 0x05)
{
if (xarchCpuInfo.Model == 0x05)
{
// * Skylake (Server)
// * Cascade Lake
// * Cooper Lake
CPUCompileFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_VECTOR512_THROTTLING);

With #86655, those no longer report Vector512.IsHardwareAccelerated, therefore we have no CI coverage of such code paths?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions