Skip to content

Commit f088170

Browse files
committed
Update and clean up code.
Includes latest configuration selection algorithm and layouts.
1 parent e3b19ec commit f088170

16 files changed

+1869
-2842
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__pycache__/
2+
.idea/
3+
.dacecache/
4+
_dotgraphs/
5+
*.nvvp
6+
/substation/*.sdfg

config_selection/load_data.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
_int_kernel_cols = ['h', 'b', 'j', 'k', 'u', 'n', 'p']
99

1010

11-
@functools.lru_cache(maxsize=None)
1211
def load_kernel(filename, cache=True):
1312
if cache:
1413
cache_filename = filename + '.pkl'
@@ -25,7 +24,8 @@ def load_kernel(filename, cache=True):
2524
parts = line.split(' ')
2625
for i in range(0, len(parts) - 1, 3):
2726
data[parts[i].lower()].append(parts[i+2].lower())
28-
data['time'] = [float(t) for t in data['time']]
27+
# Convert to milliseconds.
28+
data['time'] = [float(t)*1000 for t in data['time']]
2929
# Try to convert to ints.
3030
for col in _int_kernel_cols:
3131
if col in data:
@@ -41,7 +41,6 @@ def translate_layouts(x):
4141
return df
4242

4343

44-
@functools.lru_cache(maxsize=None)
4544
def load_tc(filename, cache=True):
4645
if cache:
4746
cache_filename = filename + '.pkl'

0 commit comments

Comments
 (0)