Changeset 8eb85de for doc/theses/mike_brooks_MMath/plots/ListCommon.py
- Timestamp:
- Feb 4, 2026, 12:43:09 PM (3 days ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- f648875
- Parents:
- df72682
- File:
-
- 1 edited
-
doc/theses/mike_brooks_MMath/plots/ListCommon.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/plots/ListCommon.py
rdf72682 r8eb85de 14 14 timings = pd.read_csv( 15 15 process.stdout, 16 names=['RunMoment', 'RunIdx', 'Args', 'Program', 'Width',16 names=['RunMoment', 'RunIdx', 'Args', 'Program', 17 17 'expt_ops_completed', 'expt_elapsed_sec', 'mean_op_dur_ns'], 18 18 dtype={'RunMoment': str, … … 20 20 'Args': str, 21 21 'Program': str, 22 'Width': np.int64,23 22 'expt_ops_completed': np.int64, 24 23 'expt_elapsed_sec': np.float64, … … 109 108 return timings 110 109 110 def stripMachine(pyCore): 111 parts = str.split(pyCore, '-') 112 exceptLast = parts[ 0 : -1 ] 113 return str.join('-', exceptLast) 114 111 115 def getSummaryMeta(metaFileCore): 112 116 metafile = os.path.dirname(os.path.abspath(__file__)) + "/" + metaFileCore + '-meta.dat' … … 120 124 'accessor']] = metadata['Op'].str.split('\\\\n', expand=True) 121 125 metadata.replace('*', 'all', inplace=True) 126 metadata.replace('S', 'stack', inplace=True) 127 metadata.replace('Q', 'queue', inplace=True) 128 metadata.replace('iF', 'insfirst', inplace=True) 129 metadata.replace('iL', 'inslast', inplace=True) 130 metadata.replace('H', 'allhead', inplace=True) 131 metadata.replace('Ie', 'inselem', inplace=True) 132 metadata.replace('Re', 'remelem', inplace=True) 122 133 return metadata 134 135 swiftSweetspot = (lambda x: x > 16 and x < 150) 136 # swiftSweetspot = (lambda x: x > 4 and x < 32) 137 javaSweetspot = (lambda x: x >= 24 and x <= 256) 123 138 124 139 def printManySummary(*, … … 126 141 metafileCore, 127 142 fxs, 128 sizeQual = (lambda x: x > 16 and x < 150), # for Swift 129 #sizeQual = (lambda x: x >= 2 and x <= 32), # for java 143 sizeQual, 130 144 tgtInterleave = 0.0, 131 145 measure = 'OpDurRelFx') :
Note:
See TracChangeset
for help on using the changeset viewer.