Merge pull request #22 from meteorfox/fix-16-cpus-limitation

make maxCopies unbounded for 'system' and 'misc' suites
This commit is contained in:
Kelly Lucas 2016-09-17 15:51:53 -07:00 committed by GitHub
commit 9665b29c99

View File

@ -106,10 +106,10 @@ my $TESTDIR = getDir('UB_TESTDIR', $BASEDIR . "/testdir");
# Configure the categories to which tests can belong. # Configure the categories to which tests can belong.
my $testCats = { my $testCats = {
'system' => { 'name' => "System Benchmarks", 'maxCopies' => 16 }, 'system' => { 'name' => "System Benchmarks", 'maxCopies' => 0 },
'2d' => { 'name' => "2D Graphics Benchmarks", 'maxCopies' => 1 }, '2d' => { 'name' => "2D Graphics Benchmarks", 'maxCopies' => 1 },
'3d' => { 'name' => "3D Graphics Benchmarks", 'maxCopies' => 1 }, '3d' => { 'name' => "3D Graphics Benchmarks", 'maxCopies' => 1 },
'misc' => { 'name' => "Non-Index Benchmarks", 'maxCopies' => 16 }, 'misc' => { 'name' => "Non-Index Benchmarks", 'maxCopies' => 0 },
}; };
@ -1347,7 +1347,7 @@ sub runTests {
# If the benchmark doesn't want to run with this many copies, skip it. # If the benchmark doesn't want to run with this many copies, skip it.
my $cat = $params->{'cat'}; my $cat = $params->{'cat'};
my $maxCopies = $testCats->{$cat}{'maxCopies'}; my $maxCopies = $testCats->{$cat}{'maxCopies'};
next if ($copies > $maxCopies); next if ($maxCopies > 0 && $copies > $maxCopies);
# Run the benchmark. # Run the benchmark.
my $bresult = runBenchmark($bench, $params, $verbose, $logFile, $copies); my $bresult = runBenchmark($bench, $params, $verbose, $logFile, $copies);