mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
1. Enable xnnpack test 2. Change TSA database name from onnxruntime_master to onnxruntime_main. This is a leftover of renaming the "master" branch to "main" 3. Add two static analysis jobs for WinML and DML 4. Rename the machine pool "aiinfra-dml-winbuild" to "onnxruntime-Win2019-GPU-dml-A10", so that the internal and public ADO instances use the same machine pool name. 5. Move Windows GPU CI build pipeline from "onnxruntime-Win2022-GPU-T4" to "onnxruntime-Win2022-GPU-A10" machine pool, because we do not have enough T4 GPUs.
214 lines
6.9 KiB
YAML
214 lines
6.9 KiB
YAML
parameters:
|
|
- name: RunOnnxRuntimeTests
|
|
displayName: Run Tests?
|
|
type: boolean
|
|
default: true
|
|
|
|
stages:
|
|
- stage: x64_debug
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'Debug'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --build_java --build_nodejs --build_wheel --disable_memleak_checker
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: x64_debug
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
isTraining: false
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win-CPU-2022'
|
|
|
|
- stage: x64_release
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
# Compare to our Nuget packaging pipeline, this job has "--build_wheel" but doesn't have "--enable_lto --disable_rtti --use_telemetry --enable_wcos"
|
|
# Python bindings use typeid so I can't disable RTTI here. If it causes a problem, we will need to split this job to two jobs.
|
|
additionalBuildFlags: --build_wheel --build_java --build_nodejs
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: x64_release
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
isTraining: false
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win-CPU-2022'
|
|
|
|
- stage: x64_release_dnnl
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --build_wheel --use_dnnl --build_java
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: x64_release
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
isTraining: false
|
|
ORT_EP_NAME: DNNL
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
# Intel EPs require Intel CPUs
|
|
MachinePool: 'onnxruntime-Win2022-Intel-CPU'
|
|
|
|
# Tests doesn't work on AMD CPUs
|
|
- stage: x64_release_xnnpack
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --build_wheel --use_xnnpack
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: x64_release
|
|
RunOnnxRuntimeTests: true
|
|
RunStaticCodeAnalysis: false
|
|
isTraining: false
|
|
ORT_EP_NAME: XNNPACK
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win-CPU-2022'
|
|
|
|
- stage: x64_release_winml
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --use_winml --enable_wcos --disable_rtti --cmake_extra_defines CMAKE_SYSTEM_VERSION=10.0.22000.0
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: x64_release_winml
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
# WinML has many warnings
|
|
RunStaticCodeAnalysis: false
|
|
EnablePython: false
|
|
isTraining: false
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win-CPU-2022'
|
|
|
|
- stage: x86_release
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env_x86.bat
|
|
buildArch: x86
|
|
additionalBuildFlags: --build_wheel
|
|
msbuildPlatform: Win32
|
|
isX86: true
|
|
job_name_suffix: x86_release
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
isTraining: false
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win-CPU-2022'
|
|
|
|
- stage: training_x64_debug
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'Debug'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --enable_training --build_wheel --disable_memleak_checker
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: training_x64_debug
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
isTraining: true
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win2022-CPU-training-AMD'
|
|
|
|
- stage: training_x64_release
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --enable_training --build_wheel
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: training_x64_release
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: true
|
|
isTraining: true
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win2022-CPU-training-AMD'
|
|
|
|
- stage: ort_training_apis_x64_release
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --enable_training_apis
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: ort_training_apis_x64_release
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
EnablePython: false
|
|
isTraining: true
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win2022-CPU-training-AMD'
|
|
|
|
- stage: x64_release_azure
|
|
dependsOn: []
|
|
jobs:
|
|
- template: templates/jobs/win-ci-vs-2022-job.yml
|
|
parameters:
|
|
BuildConfig: 'RelWithDebInfo'
|
|
EnvSetupScript: setup_env_azure.bat
|
|
buildArch: x64
|
|
additionalBuildFlags: --use_azure --use_lock_free_queue
|
|
msbuildPlatform: x64
|
|
isX86: false
|
|
job_name_suffix: x64_release_azure
|
|
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
|
|
RunStaticCodeAnalysis: false
|
|
EnablePython: false
|
|
isTraining: false
|
|
ORT_EP_NAME: CPU
|
|
GenerateDocumentation: false
|
|
WITH_CACHE: true
|
|
MachinePool: 'onnxruntime-Win-CPU-2022'
|