Skip to content

Commit

Permalink
bug fix: path names:
Browse files Browse the repository at this point in the history
  • Loading branch information
Nozidoali committed Aug 13, 2023
1 parent cd792f7 commit a7c0ef7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
cd ${{github.event.repository.name}}
sudo sh ./install_apt_packages.sh
pip3 install -e .
cd RegressionTest
cd mapbuf_runtime
python3 Test.py
- name: Cleanup
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ To install, run
You can then import the module with
`import MADBuf`

We are working on a more detailed tutorial, but for now, you can look at the examples in the `RegressionTest` folder.
We are working on a more detailed tutorial, but for now, you can look at the examples in the `mapbuf_runtime` folder.
2 changes: 1 addition & 1 deletion exp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from mapbuf import *
from RegressionTest import *
from mapbuf_runtime import *

import pygraphviz as pgv

Expand Down
2 changes: 1 addition & 1 deletion experiments/runtime-exp/plot_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_csv_filename(mut):
if os.path.exists(os.path.join(mut, "convolutional_neural_network", "milp_breakpoints", "trace.csv")):
return os.path.join(mut, "convolutional_neural_network", "milp_breakpoints", "trace.csv")
print(f"Cannot find trace.csv for {mut}")
return os.path.join("RegressionTest", mut, "convolutional_neural_network", "milp_breakpoints", "trace.csv")
return os.path.join("mapbuf_runtime", mut, "convolutional_neural_network", "milp_breakpoints", "trace.csv")

def read_data_from_csv(mut):
csv_file = get_csv_filename(mut)
Expand Down
2 changes: 1 addition & 1 deletion mapbuf_runtime/delays.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from RegressionTest.Experiments import *
from mapbuf_runtime.Experiments import *
import numpy as np
def all_dac_examples():
return [
Expand Down
10 changes: 5 additions & 5 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Author: Hanyu Wang
Created time: 2023-05-16 11:16:32
Last Modified by: Hanyu Wang
Last Modified time: 2023-08-13 09:20:53
Last Modified time: 2023-08-13 10:19:07
'''

from mapbuf import *
Expand Down Expand Up @@ -47,8 +47,8 @@ def get_area(path: str):
return stats["#FF"], stats["#LUT"]

for time_limit in [300, 600, 900, 1200, 1500]:
df, final_opt = get_opt_values(f"/home/nozidoali/MADBuf/RegressionTest/{time_limit}s")
cycles = get_cycles(f"/home/nozidoali/MADBuf/RegressionTest/{time_limit}s")
cp = get_cp(f"/home/nozidoali/MADBuf/RegressionTest/{time_limit}s")
ffs, luts = get_area(f"/home/nozidoali/MADBuf/RegressionTest/{time_limit}s")
df, final_opt = get_opt_values(f"/home/nozidoali/MADBuf/mapbuf_runtime/{time_limit}s")
cycles = get_cycles(f"/home/nozidoali/MADBuf/mapbuf_runtime/{time_limit}s")
cp = get_cp(f"/home/nozidoali/MADBuf/mapbuf_runtime/{time_limit}s")
ffs, luts = get_area(f"/home/nozidoali/MADBuf/mapbuf_runtime/{time_limit}s")
print(",".join([str(time_limit), str(final_opt), str(cycles), str(cp), str(ffs), str(luts)]))

0 comments on commit a7c0ef7

Please sign in to comment.