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:
Hector Li 2018-12-05 14:58:40 -08:00 committed by GitHub
parent eea7618d53
commit 4801e67104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -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:

View 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")