Skip to content

Commit c28f22b

Browse files
authored
Disable CG2 composite avx2 profile via condition (aspnet#2152)
The popcnt instruction set is not supported on current machine configurations, causing build failures on all crossgen2 avx2 runs. Added per-profile condition fields and set the avx2 profile condition to false to disable it at runtime.
1 parent 36ab8b9 commit c28f22b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

build/crossgen2-scenarios.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ parameters:
3232

3333
- displayName: Default
3434
arguments: --property profile=default
35+
condition: 'true'
3536
- displayName: CG2 composite # since 6.0-preview4 CG2 is the default when PublishReadyToRun=true is set
3637
arguments: --property profile=composite --application.buildArguments \"/p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishReadyToRunUseCrossgen2=true \"
38+
condition: 'true'
3739
- displayName: CG2 non-composite # /p:PublishReadyToRunComposite=false is the default
3840
arguments: --property profile=non-composite --application.buildArguments \"/p:PublishReadyToRun=true /p:PublishReadyToRunUseCrossgen2=true /p:PublishReadyToRunComposite=false\"
39-
# avx2 is not supported on ARM64
41+
condition: 'true'
42+
# avx2 is not supported on ARM64; popcnt instruction set is not supported on current machine configurations
4043
- displayName: CG2 composite avx2
4144
arguments: --property profile=composite-avx2 --application.buildArguments \"/p:PublishReadyToRun=true /p:PublishReadyToRunComposite=true /p:PublishReadyToRunUseCrossgen2=true /p:PublishReadyToRunCrossgen2ExtraArgs=--inputbubble%3b--instruction-set:avx2%2cpopcnt%2clzcnt\" --application.options.requiredArchitecture x64
45+
condition: 'false'
4246

4347
steps:
4448
- ${{ each s in parameters.scenarios }}:
@@ -55,7 +59,7 @@ steps:
5559
useDataContractSerializer: "false"
5660
messageBody: |
5761
{
58-
"condition": "(${{ parameters.condition }}) && ((new Date().getUTCHours() - 7 + 24) % 24 < 13)",
62+
"condition": "(${{ parameters.condition }}) && (${{ p.condition }}) && ((new Date().getUTCHours() - 7 + 24) % 24 < 13)",
5963
"name": "crank",
6064
"args": [ "${{ s.arguments }} ${{ p.arguments }} $(azureProfile) ${{ parameters.arguments }} --application.framework net11.0 --application.options.collectCounters false --no-metadata --no-measurements --load.options.reuseBuild true --session $(session) --description \"${{ s.displayName }} ${{ p.displayName }} $(System.JobDisplayName)\" --property buildId=\"$(buildId)\" --property buildNumber=\"$(buildNumber)\" --command-line-property --table CG2Benchmarks --sql SQL_CONNECTION_STRING --cert-tenant-id SQL_SERVER_TENANTID --cert-client-id SQL_SERVER_CLIENTID --cert-path SQL_SERVER_CERT_PATH --cert-sni --chart" ]
6165
}

0 commit comments

Comments
 (0)