mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
Hecli/cuda10 upgrade (#111)
* Add build step to remove the cuda msbuildcutomization file after build, otherwise, the cuda high version could impact the lower version build * update vs path * update the path
This commit is contained in:
parent
eea7618d53
commit
4801e67104
2 changed files with 21 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ jobs:
|
|||
filename: build.bat
|
||||
arguments: ' --use_cuda --cuda_home="C:\local\cuda-9.1.85-windows10-x64-0" --cudnn_home="C:\local\cudnn-9.1-windows10-x64-v7.1\cuda"'
|
||||
workingFolder: "$(Build.SourcesDirectory)"
|
||||
- task: PowerShell@1
|
||||
displayName: 'Clean up CUDA props files'
|
||||
inputs:
|
||||
scriptName: 'tools/ci_build/github/windows/clean_up_cuda_prop_files.ps1'
|
||||
arguments: '-CudaVersion $(CUDA_VERSION)'
|
||||
- task: CmdLine@1
|
||||
displayName: 'Clean build folders/files'
|
||||
inputs:
|
||||
|
|
|
|||
16
tools/ci_build/github/windows/clean_up_cuda_prop_files.ps1
Normal file
16
tools/ci_build/github/windows/clean_up_cuda_prop_files.ps1
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
#Clean up CUDA props files
|
||||
Param(
|
||||
[Parameter(Mandatory=$True)]
|
||||
[string]$CudaVersion
|
||||
)
|
||||
$Dst = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations"
|
||||
|
||||
Write-Host "Clean up CUDA prop files"
|
||||
Remove-Item $(Join-Path $Dst "CUDA ${CudaVersion}.props")
|
||||
Remove-Item $(Join-Path $Dst "CUDA ${CudaVersion}.targets")
|
||||
Remove-Item $(Join-Path $Dst "CUDA ${CudaVersion}.xml")
|
||||
Remove-Item $(Join-Path $Dst "Nvda.Build.CudaTasks.v${CudaVersion}.dll")
|
||||
|
||||
Loading…
Reference in a new issue