Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions openmp/runtime/tools/summarizeStats.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import pandas as pd
import numpy as np
import re
Expand Down Expand Up @@ -37,7 +39,7 @@ def draw_circle_frame(self, x0, y0, r):

frame_dict = {'polygon': draw_poly_frame, 'circle': draw_circle_frame}
if frame not in frame_dict:
raise ValueError, 'unknown value for `frame`: %s' % frame
raise ValueError('unknown value for `frame`: %s' % frame)

class RadarAxes(PolarAxes):
"""
Expand Down Expand Up @@ -143,7 +145,7 @@ def readFile(fname):
res["counters"] = readCounters(f)
return res
except (OSError, IOError):
print "Cannot open " + fname
print("Cannot open " + fname)
return None

def usefulValues(l):
Expand Down Expand Up @@ -235,7 +237,7 @@ def compPie(data):
compKeys[key] = data[key]
else:
nonCompKeys[key] = data[key]
print "comp keys:", compKeys, "\n\n non comp keys:", nonCompKeys
print("comp keys:", compKeys, "\n\n non comp keys:", nonCompKeys)
return [compKeys, nonCompKeys]

def drawMainPie(data, filebase, colors):
Expand Down Expand Up @@ -301,7 +303,7 @@ def main():
"""radar Charts finish here"""
plt.savefig(filebase+"_"+s+"_"+chartType, bbox_inches='tight')
elif s == 'timers':
print "overheads in "+filebase
print("overheads in "+filebase)
numThreads = tmp[s]['SampleCount']['Total_OMP_parallel']
for key in data.keys():
if key[0:5] == 'Total':
Expand Down
Loading