Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion tools/expandable/demo.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# source /WORK_REPO/venv/bin/activate
python -m pip install --upgrade pip
pip install eventlet pandas matplotlib

while [[ $# -gt 0 ]]; do
case $1 in
Expand Down
4 changes: 2 additions & 2 deletions tools/expandable/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def run_simulation_for_case(task_id, num_task_cgras = 9, file_name = "NULL", loa
print(f"[Step 2] Loading tasks for task {task_id}...")

if load_from_file:
if file_name is '2x2':
if file_name == '2x2':
# Load baseline tasks (12x12 CGRA)
baseline_tasks = load_tasks_from_file(f"./designs/{file_name}baseline.json")
# Load task tasks (4x4 CGRA)
Expand All @@ -195,7 +195,7 @@ def run_simulation_for_case(task_id, num_task_cgras = 9, file_name = "NULL", loa
else:
case_id = task_id

if (not load_from_file) or (file_name is '2x2'):
if (not load_from_file) or (file_name == '2x2'):
# Run baseline simulation
scheduler.run_multiple_simulations_and_save_to_csv(
baseline_tasks,
Expand Down