mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
Remove intermedia obj files once build finished (#14361)
### Description Remove intermedia obj files and reenable cache ### Motivation and Context Recently, training_debug_x64 pipeline often failed due to not enough space. It could free nearly 8G space by deleting obj files. So, the compilation cache can be reenabled
This commit is contained in:
parent
668586e8f8
commit
3d6cea14f4
2 changed files with 15 additions and 1 deletions
|
|
@ -209,6 +209,20 @@ jobs:
|
|||
displayName: cache stat
|
||||
condition: eq(${{ parameters.WITH_CACHE }}, true)
|
||||
|
||||
- powershell: |
|
||||
Get-Volume D
|
||||
displayName: check disk size
|
||||
|
||||
- task: DeleteFiles@1
|
||||
displayName: 'Delete intermedia files from $(Build.BinariesDirectory)\${{ parameters.BuildConfig }}'
|
||||
inputs:
|
||||
SourceFolder: '$(Build.BinariesDirectory)\${{ parameters.BuildConfig }}'
|
||||
Contents: |
|
||||
**/*.obj
|
||||
|
||||
- powershell: |
|
||||
Get-Volume D
|
||||
displayName: check disk size
|
||||
|
||||
- ${{ if eq(parameters.EnablePython, true) }}:
|
||||
- task: PythonScript@0
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ stages:
|
|||
isTraining: true
|
||||
ORT_EP_NAME: CPU
|
||||
GenerateDocumentation: false
|
||||
WITH_CACHE: false
|
||||
WITH_CACHE: true
|
||||
MachinePool: 'onnxruntime-Win2019-CPU-training'
|
||||
|
||||
- stage: training_x64_release
|
||||
|
|
|
|||
Loading…
Reference in a new issue