mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
* Simplify linux gpu pipeline * Refactor win-gpu-ci-pipeline.yml * Set cuda environment variables for testing and version * Remove variables from starter script * minor fix * Add GPU Nuget pipeline * Set DisableContribOps environment variable for Linux package tests * Add ESRP tasks * Add ESRP signing templates * Test out hardcode value of ERSP * Test out hardcode value of ERSP * Test out hardcode value of ERSP * Test out hardcode value of ERSP * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test out variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * test variable expansion * update cpu pipeline to conditionally esrp sign * Set C# GPU tests to run only if env var is set * Refactor for easy parameter passing * refactored esrp templates * remove variables from template * Add packaging variables back to pipelines * update C# for cuda 10 * Merge vars ana parameters for gpu pipeline * remove vars from mklml pipeline * display envvars on terminal * Clean up C# cuda tests, and upgrade to Cuda10 * Introduce CUDNN_PATH pipeline varaible * YAML variable are always uppercased (not true with classic) * Update C# GPU test to be more meaningful * remove macos from gpu tests * remove debugging info for DisableContribOps option * Remove DisableContrib ops parameters -- use variables only * Fix typo from = to - * remove debug steps * fix typo * remove unused variable TESTONGPU from some templates * clean up CUDA env setup scripts * Remove CUDNN_PATH from setup_env_cuda.bat
48 lines
1.5 KiB
Batchfile
Executable file
48 lines
1.5 KiB
Batchfile
Executable file
REM Copyright (c) Microsoft Corporation. All rights reserved.
|
|
REM Licensed under the MIT License.
|
|
|
|
@ECHO ON
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
SET TargetFramework=netcoreapp2.1
|
|
SET TargetArch=x64
|
|
SET dn="C:\Program Files\dotnet\dotnet"
|
|
|
|
SET LocalNuGetRepo=%1
|
|
IF NOT "%2"=="" (SET TargetFramework=%2)
|
|
IF NOT "%3"=="" (SET TargetArch=%3)
|
|
|
|
IF "%TargetArch%"=="x86" (
|
|
SET dn="C:\Program Files (x86)\dotnet\dotnet"
|
|
SET RuntimeIdentifier=win-x86
|
|
SET PlatformTarget=x86
|
|
)
|
|
|
|
ECHO Target Framework is %TargetFramework%
|
|
REM WorkingDirectory is Build.SourcesDirectory\csharp
|
|
SET /p MajorVersionNumber=<..\VERSION_NUMBER
|
|
SET VersionSuffix=
|
|
IF NOT DEFINED IsReleaseBuild (
|
|
FOR /F "tokens=* USEBACKQ" %%F IN (`git rev-parse --short HEAD`) DO (
|
|
set VersionSuffix=-dev-%%F
|
|
)
|
|
)
|
|
|
|
SET CurrentOnnxRuntimeVersion=%MajorVersionNumber%%VersionSuffix%
|
|
|
|
REM Update if CUDA lib paths if set
|
|
SET PATH=%CUDA_PATH%\bin;%CUDNN_PATH%\bin;%PATH%
|
|
|
|
@echo %CurrentOnnxRuntimeVersion%
|
|
%dn% restore test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj --configfile .\Nuget.CSharp.config --no-cache --packages test\Microsoft.ML.OnnxRuntime.EndToEndTests --source https://api.nuget.org/v3/index.json --source %LocalNuGetRepo%
|
|
|
|
IF NOT errorlevel 0 (
|
|
@echo "Failed to restore nuget packages for the test project"
|
|
EXIT 1
|
|
)
|
|
|
|
%dn% test test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj --no-restore
|
|
IF NOT errorlevel 0 (
|
|
@echo "Failed to build or execute the end-to-end test"
|
|
EXIT 1
|
|
)
|