projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ea0c9fb
)
allow the max number of workers to scale with +RTS -N
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 16 Jun 2006 14:06:33 +0000
(14:06 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 16 Jun 2006 14:06:33 +0000
(14:06 +0000)
rts/Task.c
patch
|
blob
|
history
diff --git
a/rts/Task.c
b/rts/Task.c
index
918dc55
..
8779e29
100644
(file)
--- a/
rts/Task.c
+++ b/
rts/Task.c
@@
-58,7
+58,11
@@
initTaskManager (void)
taskCount = 0;
workerCount = 0;
tasksRunning = 0;
+#if defined(THREADED_RTS)
+ maxWorkers = DEFAULT_MAX_WORKERS * RtsFlags.ParFlags.nNodes;
+#else
maxWorkers = DEFAULT_MAX_WORKERS;
+#endif
initialized = 1;
#if defined(THREADED_RTS)
newThreadLocalKey(¤tTaskKey);