mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-06 11:10:06 +01:00
Masking instruction duplication mentioned in #24
This commit is contained in:
@@ -132,8 +132,11 @@ def dump_csv(model_data):
|
|||||||
if p not in port_occupancy:
|
if p not in port_occupancy:
|
||||||
port_occupancy[p] = 0.0
|
port_occupancy[p] = 0.0
|
||||||
po_items = sorted(port_occupancy.items())
|
po_items = sorted(port_occupancy.items())
|
||||||
csv += '{},{},{},"({})"\n'.format(mnemonic, throughput, latency,
|
csv_line = '{},{},{},"({})"\n'.format(mnemonic, throughput, latency,
|
||||||
','.join([str(c) for p, c in po_items]))
|
','.join([str(c) for p, c in po_items]))
|
||||||
|
csv += csv_line
|
||||||
|
if '{opmask}' in csv_line:
|
||||||
|
csv += csv_line.replace('{opmask}', '')
|
||||||
return csv
|
return csv
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -74,8 +74,9 @@ class Scheduler(object):
|
|||||||
# Check if there's a port occupation stored in the CSV, otherwise leave the
|
# Check if there's a port occupation stored in the CSV, otherwise leave the
|
||||||
# occ_port list item empty
|
# occ_port list item empty
|
||||||
for i, instrForm in enumerate(self.instrList):
|
for i, instrForm in enumerate(self.instrList):
|
||||||
|
search_string = instrForm[0] + '-' + self.get_operand_suffix(instrForm)
|
||||||
|
print(search_string)
|
||||||
try:
|
try:
|
||||||
search_string = instrForm[0] + '-' + self.get_operand_suffix(instrForm)
|
|
||||||
entry = self.df.loc[lambda df, sStr=search_string: df.instr == sStr]
|
entry = self.df.loc[lambda df, sStr=search_string: df.instr == sStr]
|
||||||
tup = entry.ports.values[0]
|
tup = entry.ports.values[0]
|
||||||
if len(tup) == 1 and tup[0] == -1:
|
if len(tup) == 1 and tup[0] == -1:
|
||||||
|
|||||||
Reference in New Issue
Block a user