Skip to content
Snippets Groups Projects
Commit 042cfdd6 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

stash pop

parent 3bf9ef86
No related branches found
No related tags found
No related merge requests found
...@@ -165,6 +165,6 @@ class TimedWorkStatistics(WorkStatistics): ...@@ -165,6 +165,6 @@ class TimedWorkStatistics(WorkStatistics):
for (op_category, op_count) in ops_count.iteritems(): for (op_category, op_count) in ops_count.iteritems():
ops_per_second[op_category] = op_count/self.duration ops_per_second[op_category] = op_count/self.duration
self._ops_per_category = ops_per_category self._ops_per_category = ops_count
self._ops_per_second = ops_per_second self._ops_per_second = ops_per_second
...@@ -151,10 +151,10 @@ class ComputeInterface(MemInterface): ...@@ -151,10 +151,10 @@ class ComputeInterface(MemInterface):
timed_stats = self.stats_per_second() timed_stats = self.stats_per_second()
if (timed_stats is not None): if (timed_stats is not None):
if timed_stats.global_mem_throughput()>0: if timed_stats.global_mem_throughput()>0:
s += 'OPI={}'.format(unit2str(float(timed_stats.ops_per_category['FLOPS'])/timed_stats.global_mem_transactions(), 'FLOP/B',decimal=True))
s += ' throughput={}'.format(bdw2str(timed_stats.global_mem_throughput())) s += ' throughput={}'.format(bdw2str(timed_stats.global_mem_throughput()))
if timed_stats.global_mem_throughput() < timed_stats.total_mem_throughput(): if timed_stats.global_mem_throughput() < timed_stats.total_mem_throughput():
s+= ' (tot={})'.format(bdw2str(timed_stats.total_mem_throughput())) s+= ' (tot={})'.format(bdw2str(timed_stats.total_mem_throughput()))
s += ' OPI={}'.format(unit2str(float(timed_stats.ops_per_category()['FLOPS'])/timed_stats.global_mem_transactions(), 'FLOP/B',decimal=True,rounded=0))
for (op_category, ops_per_second) in timed_stats.ops_per_second().iteritems(): for (op_category, ops_per_second) in timed_stats.ops_per_second().iteritems():
s += ' {}'.format(unit2str(ops_per_second,op_category,decimal=True,rounded=0)) s += ' {}'.format(unit2str(ops_per_second,op_category,decimal=True,rounded=0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment