Remove MemoryHierarchy Bench again and revert to old structure.

This commit is contained in:
Jan Eitzinger
2019-09-15 06:21:39 +02:00
parent f4f081e596
commit 58d9964da4
37 changed files with 0 additions and 912 deletions

23
bench.pl Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
my $CMD = $ARGV[0];
my @N = split /-/, $ARGV[1];
my $R = $ARGV[2];
my $MAX = 0; my $CORES = 0; my $BENCH = '';
my $SMT = $ARGV[3] ? $ARGV[3] : 2;
foreach my $numcores ( $N[0] ... $N[1] ) {
foreach ( 1 ... $R ) {
foreach my $ln ( split /\n/, `likwid-pin -c E:S0:$numcores:1:$SMT $CMD` ){
if ( $ln =~ /^([A-Za-z]+):[ ]+([0-9.]+) /) {
if ( $MAX < $2 ){
$MAX = $2; $CORES = $numcores; $BENCH = $1;
}
}
}
}
}
print "$BENCH was best using $CORES threads: $MAX\n";