Add header line to output for later use in bench.plot
This commit is contained in:
@@ -22,7 +22,7 @@ if ( $ARGV[1] eq 'seq' ){
|
|||||||
$type = 2;
|
$type = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print("# striad $numCores $SMT $ARGV[1]\n");
|
||||||
while ( $N < 8000000 ) {
|
while ( $N < 8000000 ) {
|
||||||
my $result;
|
my $result;
|
||||||
my $performance = '0.00';
|
my $performance = '0.00';
|
||||||
|
|||||||
@@ -52,12 +52,14 @@ else:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
smt = int(sys.argv[3]) if len(sys.argv) == 4 else default_smt
|
smt = int(sys.argv[3]) if len(sys.argv) == 4 else default_smt
|
||||||
|
|
||||||
|
print("# striad {} {} {}".format(numcores, smt, striad_type))
|
||||||
|
|
||||||
N = start_N
|
N = start_N
|
||||||
while N < max_N:
|
while N < max_N:
|
||||||
performance = 0
|
performance = 0
|
||||||
result = None
|
result = None
|
||||||
runcmd = "likwid-pin -c E:S0:{}:1:{} -q ./striad {} {}".format(numcores, smt,
|
runcmd = "likwid-pin -c E:S0:{}:1:{} -q ./striad {} {}".format(numcores, smt,
|
||||||
striad_t, N)
|
striad_t, N)
|
||||||
while performance == 0:
|
while performance == 0:
|
||||||
p = subprocess.Popen(runcmd, stdout=subprocess.PIPE,
|
p = subprocess.Popen(runcmd, stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
@@ -72,4 +74,5 @@ while N < max_N:
|
|||||||
print("Execution failed: {}".format(runcmd))
|
print("Execution failed: {}".format(runcmd))
|
||||||
break
|
break
|
||||||
print(result)
|
print(result)
|
||||||
|
sys.stdout.flush()
|
||||||
N = int(N * scale_N)
|
N = int(N * scale_N)
|
||||||
|
|||||||
Reference in New Issue
Block a user