@@ -121,109 +121,6 @@ stages:
121
121
parameters :
122
122
StageSuffix : ' macOS_CPU_x64'
123
123
124
- - template : templates/final-jar-testing.yml
125
- parameters :
126
- OS : Windows
127
- PoolName : ' onnxruntime-Win-CPU-2022'
128
-
129
- - template : templates/final-jar-testing.yml
130
- parameters :
131
- OS : Linux
132
- PoolName : ' onnxruntime-Ubuntu2204-AMD-CPU'
133
-
134
- - template : templates/final-jar-testing.yml
135
- parameters :
136
- OS : MacOS
137
- PoolName : ' macOS-14'
138
-
139
-
140
- - stage : GPU_JAR_Testing
141
- dependsOn : Setup
142
- jobs :
143
- - job : Final_Jar_Testing_Windows_GPU
144
- workspace :
145
- clean : all
146
- pool : ' onnxruntime-Win2022-GPU-A10'
147
- timeoutInMinutes : 60
148
- variables :
149
- - name : runCodesignValidationInjection
150
- value : false
151
-
152
- steps :
153
- - template : templates/set-version-number-variables-step.yml
154
-
155
- - template : templates/jobs/download_win_gpu_library.yml
156
- parameters :
157
- CudaVersion : 12.2
158
- DownloadCUDA : true
159
- DownloadTRT : true
160
-
161
- - template : templates/flex-downloadPipelineArtifact.yml
162
- parameters :
163
- StepName : ' Download Final Jar'
164
- ArtifactName : onnxruntime-java-gpu
165
- TargetPath : ' $(Build.BinariesDirectory)\final-jar'
166
-
167
- - template : templates/flex-downloadPipelineArtifact.yml
168
- parameters :
169
- StepName : ' Download Jar Tools'
170
- ArtifactName : onnxruntime-java-tools
171
- TargetPath : ' $(Build.BinariesDirectory)\final-jar'
172
-
173
- - task : CmdLine@2
174
- inputs :
175
- script : |
176
- mkdir test
177
- pushd test
178
- jar xf $(Build.BinariesDirectory)\final-jar\testing.jar
179
- popd
180
- java -DUSE_CUDA=1 -jar junit-platform-console-standalone-1.6.2.jar -cp .;.\test;protobuf-java-3.25.5.jar;onnxruntime_gpu-$(OnnxRuntimeVersion).jar --scan-class-path --fail-if-no-tests --disable-banner
181
- workingDirectory : ' $(Build.BinariesDirectory)\final-jar'
182
-
183
- - job : Final_Jar_Testing_Linux_GPU
184
- workspace :
185
- clean : all
186
- pool :
187
- name : ' Onnxruntime-Linux-GPU-A10'
188
- os : linux
189
- variables :
190
- - name : runCodesignValidationInjection
191
- value : false
192
- - name : docker_base_image
193
- value : onnxruntimebuildcache.azurecr.io/internal/azureml/onnxruntime/build/cuda12_x64_almalinux8_gcc12:20250724.1
194
- timeoutInMinutes : 60
195
- steps :
196
- - checkout : self
197
- submodules : false
198
- - template : templates/set-version-number-variables-step.yml
199
-
200
- - template : templates/flex-downloadPipelineArtifact.yml
201
- parameters :
202
- StepName : ' Download Final Jar'
203
- ArtifactName : onnxruntime-java-gpu
204
- TargetPath : ' $(Build.BinariesDirectory)/final-jar'
205
-
206
- - template : templates/get-docker-image-steps.yml
207
- parameters :
208
- Dockerfile : tools/ci_build/github/linux/docker/Dockerfile.package_ubi8_cuda_tensorrt10_0
209
- Context : tools/ci_build/github/linux/docker/
210
- DockerBuildArgs : "
211
- --build-arg BUILD_UID=$( id -u )
212
- --build-arg BASEIMAGE=${{ variables.docker_base_image }}
213
- --build-arg TRT_VERSION=${{ variables.linux_trt_version }}
214
- "
215
- Repository : onnxruntimeubi8packagestest
216
-
217
- - bash : |
218
- docker run -e SYSTEM_COLLECTIONURI --rm \
219
- --gpus all \
220
- --volume $(Build.SourcesDirectory):/onnxruntime_src \
221
- --volume $(Build.BinariesDirectory):/build \
222
- --volume /data/models:/build/models:ro \
223
- onnxruntimeubi8packagestest \
224
- /bin/bash /onnxruntime_src/tools/ci_build/github/linux/java_linux_final_test.sh -r /build -v $(OnnxRuntimeVersion)
225
- displayName: 'Test'
226
-
227
124
- template : nuget/templates/test_win.yml
228
125
parameters :
229
126
AgentPool : ' onnxruntime-Win2022-GPU-A10'
@@ -274,13 +171,14 @@ stages:
274
171
clean : true
275
172
submodules : none
276
173
277
- - template : templates/flex-downloadPipelineArtifact.yml
278
- parameters :
279
- ArtifactName : " Windows_Packaging_cuda_build_artifacts"
280
- StepName : ' Download Pipeline Artifact - Windows GPU Packages Build'
281
- TargetPath : ' $(Build.BinariesDirectory)/RelWithDebInfo/'
174
+ - download : build
175
+ artifact : ' Windows_Packaging_cuda_build_artifacts'
176
+ displayName : ' Download Windows GPU Packages Build'
282
177
283
- - template : templates/telemetry-steps.yml
178
+ - task : CmdLine@2
179
+ inputs :
180
+ script : |
181
+ move $(Pipeline.Workspace)/build/Windows_Packaging_cuda_build_artifacts $(Build.BinariesDirectory)/RelWithDebInfo
284
182
285
183
- template : templates/set-version-number-variables-step.yml
286
184
@@ -323,7 +221,7 @@ stages:
323
221
displayName : ' test'
324
222
inputs :
325
223
scriptPath : ' $(Build.SourcesDirectory)\tools\ci_build\build.py'
326
- arguments : ' --config RelWithDebInfo --use_binskim_compliant_compile_flags --enable_lto --disable_rtti --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --test --enable_onnx_tests $(TelemetryOption) '
224
+ arguments : ' --config RelWithDebInfo --use_binskim_compliant_compile_flags --enable_lto --disable_rtti --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --test --enable_onnx_tests'
327
225
workingDirectory : ' $(Build.BinariesDirectory)'
328
226
# Previous stage only assembles the java binaries, testing will be done in this stage with GPU machine
329
227
- template : templates/make_java_win_binaries.yml
@@ -345,13 +243,15 @@ stages:
345
243
clean : true
346
244
submodules : none
347
245
348
- - template : templates/flex-downloadPipelineArtifact.yml
349
- parameters :
350
- ArtifactName : " Windows_Packaging_tensorrt_build_artifacts"
351
- StepName : ' Download Pipeline Artifact - Windows GPU Packages Build'
352
- TargetPath : ' $(Build.BinariesDirectory)/RelWithDebInfo/'
353
246
354
- - template : templates/telemetry-steps.yml
247
+ - download : build
248
+ artifact : ' Windows_Packaging_tensorrt_build_artifacts'
249
+ displayName : ' Download Windows GPU Packages Build'
250
+
251
+ - task : CmdLine@2
252
+ inputs :
253
+ script : |
254
+ move $(Pipeline.Workspace)/build/Windows_Packaging_tensorrt_build_artifacts $(Build.BinariesDirectory)/RelWithDebInfo
355
255
356
256
- template : templates/set-version-number-variables-step.yml
357
257
@@ -394,7 +294,7 @@ stages:
394
294
displayName : ' test'
395
295
inputs :
396
296
scriptPath : ' $(Build.SourcesDirectory)\tools\ci_build\build.py'
397
- arguments : ' --config RelWithDebInfo --use_binskim_compliant_compile_flags --enable_lto --disable_rtti --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --test --enable_onnx_tests $(TelemetryOption) '
297
+ arguments : ' --config RelWithDebInfo --use_binskim_compliant_compile_flags --enable_lto --disable_rtti --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --test --enable_onnx_tests'
398
298
workingDirectory : ' $(Build.BinariesDirectory)'
399
299
# Previous stage only assembles the java binaries, testing will be done in this stage with GPU machine
400
300
- template : templates/make_java_win_binaries.yml
0 commit comments