Commit 4d89b581 by Ben Clayton

Regres: Limit the default number of threads to 100

Going above this causes mayhem on my 3990x. Given that this is pretty much top end hardware, I don't think anything else in existance could cope with more than 100. Change-Id: I8b6e4ad09312655c59084aaf5185bb99ee459bdb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44016Tested-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent ccaa8e84
...@@ -45,10 +45,17 @@ import ( ...@@ -45,10 +45,17 @@ import (
"../../util" "../../util"
) )
func min(a, b int) int {
if a < b {
return a
}
return b
}
var ( var (
deqpVkBinary = flag.String("deqp-vk", "deqp-vk", "path to the deqp-vk binary") deqpVkBinary = flag.String("deqp-vk", "deqp-vk", "path to the deqp-vk binary")
testList = flag.String("test-list", "vk-master-PASS.txt", "path to a test list file") testList = flag.String("test-list", "vk-master-PASS.txt", "path to a test list file")
numThreads = flag.Int("num-threads", runtime.NumCPU(), "number of parallel test runner processes") numThreads = flag.Int("num-threads", min(runtime.NumCPU(), 100), "number of parallel test runner processes")
maxProcMemory = flag.Uint64("max-proc-mem", shell.MaxProcMemory, "maximum virtual memory per child process") maxProcMemory = flag.Uint64("max-proc-mem", shell.MaxProcMemory, "maximum virtual memory per child process")
output = flag.String("output", "results.json", "path to an output JSON results file") output = flag.String("output", "results.json", "path to an output JSON results file")
filter = flag.String("filter", "", "filter for test names. Start with a '/' to indicate regex") filter = flag.String("filter", "", "filter for test names. Start with a '/' to indicate regex")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment