Skip to content

Instantly share code, notes, and snippets.

@hitsumabushi
Created March 24, 2021 07:35
Show Gist options
  • Save hitsumabushi/7aa2e7abf7925688bebf1807dc43f8af to your computer and use it in GitHub Desktop.
Save hitsumabushi/7aa2e7abf7925688bebf1807dc43f8af to your computer and use it in GitHub Desktop.
For unixbench on more than 16vCPU
--- Run.orig 2021-03-18 09:37:57.797999641 +0000
+++ Run 2021-03-18 09:43:38.611999741 +0000
@@ -106,10 +106,10 @@ my $TESTDIR = getDir('UB_TESTDIR', $BASE
# Configure the categories to which tests can belong.
my $testCats = {
- 'system' => { 'name' => "System Benchmarks", 'maxCopies' => 16 },
+ 'system' => { 'name' => "System Benchmarks", 'maxCopies' => 0 },
'2d' => { 'name' => "2D 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 },
};
@@ -1329,7 +1329,7 @@ sub runTests {
# If the benchmark doesn't want to run with this many copies, skip it.
my $cat = $params->{'cat'};
my $maxCopies = $testCats->{$cat}{'maxCopies'};
- next if ($copies > $maxCopies);
+ next if ($maxCopies > 0 && $copies > $maxCopies);
# Run the benchmark.
my $bresult = runBenchmark($bench, $params, $verbose, $logFile, $copies);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment