Skip to content

Commit

Permalink
Throttle LLVM10 backend build to 1 CPU to avoid heap exhaustion
Browse files Browse the repository at this point in the history
  • Loading branch information
pal1000 committed Jul 29, 2024
1 parent ead5b4e commit 5fc0adb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schedules:
always: true
jobs:
- job: swiftshader
timeoutInMinutes: 180
timeoutInMinutes: 360
pool:
vmImage: windows-latest
strategy:
Expand All @@ -24,7 +24,7 @@ jobs:
git clone --depth=1 https://swiftshader.googlesource.com/SwiftShader swiftshader
git clone https://github.com/pal1000/swiftshader-dist-win.git swiftshader-dist-win
cd swiftshader-dist-win
git checkout 1.0.7.3
git checkout 1.0.7.4
cd ..
displayName: Get sources
- script: swiftshader-dist-win\buildscript\ci\ci.cmd collectuids
Expand Down
3 changes: 2 additions & 1 deletion buildscript/ci/x64-llvm10.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
@set pyupd=y

@rem modules\throttle.cmd
@set throttle=%NUMBER_OF_PROCESSORS%
@rem Throttle LLVM10 backend build to 1 CPU to avoid heap exhaustion
@set throttle=1

@rem modules\swiftshader.cmd
@set buildswiftshader=y
Expand Down
3 changes: 2 additions & 1 deletion buildscript/ci/x86-llvm10.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
@set pyupd=n

@rem modules\throttle.cmd
@set throttle=%NUMBER_OF_PROCESSORS%
@rem Throttle LLVM10 backend build to 1 CPU to avoid heap exhaustion
@set throttle=1

@rem modules\swiftshader.cmd
@set buildswiftshader=y
Expand Down

0 comments on commit 5fc0adb

Please sign in to comment.