mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-26 03:00:54 +00:00
### Description <!-- Describe your changes. --> * promote trt version to 10.2.0.19 * EP_Perf CI: clean config of legacy TRT<8.6, promote test env to trt10.2-cu118/cu125 * skip two tests as Float8/BF16 are supported by TRT>10.0 but TRT CIs are not hardware-compatible on these: ``` 1: [ FAILED ] 2 tests, listed below: 1: [ FAILED ] IsInfTest.test_isinf_bfloat16 1: [ FAILED ] IsInfTest.test_Float8E4M3FN ``` ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
116 lines
4.5 KiB
YAML
116 lines
4.5 KiB
YAML
parameters:
|
|
AgentPool: 'onnxruntime-Ubuntu2204-AMD-CPU'
|
|
ArtifactSuffix: ''
|
|
NugetPackageName : ''
|
|
StageSuffix: 'CPU'
|
|
# More Suffix is used to differentiate testing for GPU and GPU-Windows/GPU-Linux packages
|
|
MoreSuffix: ''
|
|
NativePackagePrefix: 'onnxruntime'
|
|
SpecificArtifact: false
|
|
CustomOpArtifactName: 'onnxruntime-linux-x64'
|
|
BuildId: '0'
|
|
CudaVersion: '11.8'
|
|
stages:
|
|
- stage: NuGet_Test_Linux_${{ parameters.StageSuffix }}${{ parameters.MoreSuffix }}
|
|
dependsOn:
|
|
- NuGet_Packaging_${{ parameters.StageSuffix }}
|
|
condition: succeeded()
|
|
jobs:
|
|
- job: NuGet_Test_Linux_${{ parameters.StageSuffix }}${{ parameters.MoreSuffix }}
|
|
workspace:
|
|
clean: all
|
|
timeoutInMinutes: 120
|
|
pool: ${{ parameters.AgentPool }}
|
|
|
|
variables:
|
|
- name: OnnxRuntimeBuildDirectory
|
|
value: '$(Build.BinariesDirectory)'
|
|
|
|
steps:
|
|
- template: ../../templates/flex-downloadPipelineArtifact.yml
|
|
parameters:
|
|
StepName: 'Download Signed NuGet'
|
|
ArtifactName: drop-signed-nuget-${{ parameters.ArtifactSuffix }}
|
|
TargetPath: '$(Build.BinariesDirectory)/nuget-artifact'
|
|
SpecificArtifact: ${{ parameters.SpecificArtifact }}
|
|
BuildId: ${{ parameters.BuildId }}
|
|
|
|
- template: ../../templates/flex-downloadPipelineArtifact.yml
|
|
parameters:
|
|
StepName: 'Download Linux CustomOp TestData'
|
|
ArtifactName: ${{ parameters.CustomOpArtifactName }}
|
|
TargetPath: '$(Build.BinariesDirectory)/testdata'
|
|
SpecificArtifact: ${{ parameters.specificArtifact }}
|
|
BuildId: ${{ parameters.BuildId }}
|
|
|
|
- template: get-nuget-package-version-as-variable.yml
|
|
parameters:
|
|
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact'
|
|
|
|
- task: CmdLine@2
|
|
displayName: 'Create symlink for test models'
|
|
inputs:
|
|
script: |
|
|
ln -sf /data/models $(Build.BinariesDirectory)
|
|
|
|
- ${{if contains(parameters.StageSuffix , 'GPU') }}:
|
|
- template: ../../templates/get-docker-image-steps.yml
|
|
parameters:
|
|
Dockerfile: tools/ci_build/github/linux/docker/Dockerfile.package_ubuntu_2004_gpu
|
|
Context: tools/ci_build/github/linux/docker/
|
|
${{ if eq(parameters.CudaVersion, '12.2') }}:
|
|
DockerBuildArgs: "
|
|
--build-arg BASEIMAGE=nvidia/cuda:12.2.2-devel-ubuntu20.04
|
|
--build-arg TRT_VERSION=10.2.0.19-1+cuda12.5
|
|
--build-arg BUILD_UID=$( id -u )
|
|
"
|
|
${{ else }}:
|
|
DockerBuildArgs: "
|
|
--build-arg BUILD_UID=$( id -u )
|
|
"
|
|
Repository: onnxruntimepackagestest
|
|
- bash: |
|
|
docker run --rm \
|
|
--gpus all \
|
|
--volume $(Build.SourcesDirectory):/onnxruntime_src \
|
|
--volume $(Build.BinariesDirectory):/build \
|
|
--volume /data/models:/build/models:ro \
|
|
-e BUILD_SOURCESDIRECTORY='/onnxruntime_src' \
|
|
-e OnnxRuntimeBuildDirectory='/build' \
|
|
-e DisableContribOps='$(DisableContribOps)' \
|
|
-e DisableMlOps='$(DisableMlOps)' \
|
|
-e IsReleaseBuild='$(IsReleaseBuild)' \
|
|
-e PACKAGENAME='${{ parameters.NugetPackageName }}' \
|
|
onnxruntimepackagestest \
|
|
/bin/bash -c "
|
|
set -ex; \
|
|
pushd /build; \
|
|
bash /onnxruntime_src/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh /build/nuget-artifact $(NuGetPackageVersionNumber); \
|
|
popd
|
|
"
|
|
displayName: 'Run Package Test'
|
|
- ${{ else }}:
|
|
- task: CmdLine@2
|
|
displayName: 'Create symlink for test models'
|
|
inputs:
|
|
script: |
|
|
ln -sf /data/models $(Build.BinariesDirectory)
|
|
- task: Bash@3
|
|
displayName: 'Run Package Test'
|
|
inputs:
|
|
targetType: filePath
|
|
filePath: '$(Build.SourcesDirectory)/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh'
|
|
arguments: '$(Build.BinariesDirectory)/nuget-artifact $(NuGetPackageVersionNumber)'
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
env:
|
|
OnnxRuntimeBuildDirectory: $(Build.BinariesDirectory)
|
|
DisableContribOps: $(DisableContribOps)
|
|
DisableMlOps: $(DisableMlOps)
|
|
IsReleaseBuild: $(IsReleaseBuild)
|
|
PACKAGENAME: ${{ parameters.NugetPackageName }}
|
|
|
|
- template: ../../templates/component-governance-component-detection-steps.yml
|
|
parameters:
|
|
condition: 'always'
|
|
|
|
- template: ../../templates/clean-agent-build-directory-step.yml
|