Skip to content

Add CI pipeline to test APX feature #112239

@DeepakRajendrakumaran

Description

@DeepakRajendrakumaran

Currently, APX is disabled by default since no targets supporting it is available. CI does not test this feature as of now. It is possible to ensure that we do not run into any asserts etc with this feature by testing with altjit

General instructions used when testing locally are as follows

Build APX branch with following

build.cmd clr+libs -rc Checked -lc Release
src\tests\build.cmd x64 checked generatelayoutonly

Go to jitutils and run bootstrap.cmd

Set following env variables
set DOTNET_MaxVectorTBitwidth=128// This an altjit issue. Without this we run into an assert even in main when compiling vector API on certain machines
set Dotnet_EnableAPX= 1

set Dotnet_JitStressRegs=0x4000 - this is optional. It just forces eGPR usage where possible

Run from runtime repo root.
jit-diff diff --output C:\Dotnet\APX\Output --pmi --diff --corelib --altjit clrjit_unix_x64_x64.dll --diff C:\Dotnet\runtime\artifacts\bin\coreclr\windows.x64.Checked --core_root C:\Dotnet\runtime\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root --arch x64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions