mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Change DML GPU pool in Windows GPU workflow use Visual Studio 2022 (#16784)
### Description 1. use the pool with VS2022 2. upgrade System.Memory to 4.5.5 ### Motivation and Context Solve the build error while using VS2022: `[Failure] Msbuild failed when processing the file 'D:\a\_work\1\s\csharp\src\Microsoft.ML.OnnxRuntime\Microsoft.ML.OnnxRuntime.csproj' with message: Method not found: 'System.ReadOnlySpan`1<Char> Microsoft.IO.Path.GetFileName(System.ReadOnlySpan`1<Char>)'` Ref: https://stackoverflow.com/questions/73399777/azure-build-failing-due-to-method-not-found-system-readonlyspan1char-micros
This commit is contained in:
parent
b92f02ad48
commit
3252ff2cb7
6 changed files with 12 additions and 12 deletions
|
|
@ -100,7 +100,7 @@
|
|||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Memory" Version="4.5.3" IncludeAssets="None" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" IncludeAssets="None" />
|
||||
<AndroidNativeLibrary Condition=" Exists('..\..\..\..\build\Android\arm64-v8a\Release\libonnxruntime.so') " Include="..\..\..\..\build\Android\arm64-v8a\Release\libonnxruntime.so">
|
||||
<Link>libs\arm64-v8a\libonnxruntime.so</Link>
|
||||
</AndroidNativeLibrary>
|
||||
|
|
@ -115,4 +115,4 @@
|
|||
</AndroidNativeLibrary>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@
|
|||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Memory" Version="4.5.3" IncludeAssets="None" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" IncludeAssets="None" />
|
||||
<NativeReference Condition=" '$(Platform)' == 'iPhoneSimulator' And Exists('$(OnnxNativeFrameworkPathSimulator)') " Include="$(OnnxNativeFrameworkPathSimulator)">
|
||||
<Kind>Framework</Kind>
|
||||
<ForceLoad>True</ForceLoad>
|
||||
|
|
@ -160,4 +160,4 @@
|
|||
</NativeReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -331,13 +331,13 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('netstandard'))">
|
||||
<PackageReference Include="System.Memory" Version="4.5.3" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||
<Compile Include="**\*.netstandard.cs" Link="platform\netstandard\%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" $(TargetFramework.StartsWith('net')) AND !$(TargetFramework.StartsWith('netstandard')) ">
|
||||
<PackageReference Include="System.Memory" Version="4.5.3" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||
<Compile Include="**\*.net.cs" Link="platform\net\%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@
|
|||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Memory" Version="4.5.3" IncludeAssets="None" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" IncludeAssets="None" />
|
||||
<AndroidNativeLibrary Condition=" Exists('..\..\..\build\Android\arm64-v8a\Release\libonnxruntime.so') " Include="..\..\..\build\Android\arm64-v8a\Release\libonnxruntime.so">
|
||||
<Link>libs\arm64-v8a\libonnxruntime.so</Link>
|
||||
</AndroidNativeLibrary>
|
||||
|
|
@ -173,4 +173,4 @@
|
|||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
<PackageReference Include="Xamarin.Forms">
|
||||
<Version>5.0.0.2083</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.Memory" Version="4.5.3" IncludeAssets="None" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" IncludeAssets="None" />
|
||||
<PackageReference Include="Xamarin.TestCloud.Agent">
|
||||
<Version>0.22.2</Version>
|
||||
</PackageReference>
|
||||
|
|
@ -205,4 +205,4 @@
|
|||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ stages:
|
|||
- stage: dml
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/win-ci-vs-2019.yml
|
||||
- template: templates/jobs/win-ci-vs-2022-job.yml
|
||||
parameters:
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
EnvSetupScript: setup_env.bat
|
||||
|
|
@ -82,7 +82,7 @@ stages:
|
|||
RunStaticCodeAnalysis: false
|
||||
ORT_EP_NAME: DML
|
||||
WITH_CACHE: true
|
||||
MachinePool: onnxruntime-Win2019-GPU-dml-A10
|
||||
MachinePool: onnxruntime-Win2022-GPU-dml-A10
|
||||
|
||||
- stage: kernelDocumentation
|
||||
dependsOn: []
|
||||
|
|
|
|||
Loading…
Reference in a new issue