Skip to content

Commit

Permalink
Merge pull request #45 from uraimo/numthreads
Browse files Browse the repository at this point in the history
Hack the number of threads for now
  • Loading branch information
uraimo authored Apr 8, 2019
2 parents 3524a71 + b0eefab commit 62d25ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-ci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
. "$(dirname $0)/utils.sh"

REL=4.2.3
REL=5.0.0
INSTALL_DIR=`pwd`/install
PACKAGE=`pwd`/swift-${REL}.tgz

Expand Down
16 changes: 16 additions & 0 deletions llbuild.diffs/threads.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/lib/BuildSystem/BuildSystemFrontend.cpp b/lib/BuildSystem/BuildSystemFrontend.cpp
index 70740a5..25386c5 100644
--- a/lib/BuildSystem/BuildSystemFrontend.cpp
+++ b/lib/BuildSystem/BuildSystemFrontend.cpp
@@ -462,7 +462,10 @@ BuildSystemFrontendDelegate::createExecutionQueue() {
numLanes = numCPUs;
}
}
-
+
+ numLanes = 1;
+ printf("Setting number of lanes to 1!\n");
+
return std::unique_ptr<ExecutionQueue>(
createLaneBasedExecutionQueue(impl->executionQueueDelegate, numLanes,
impl->invocation.schedulerAlgorithm,

0 comments on commit 62d25ad

Please sign in to comment.