Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcheng15 committed Dec 7, 2024
2 parents ba1c4ee + f58777a commit a853929
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
branch = master
[submodule "archipelago"]
path = archipelago
url = https://github.com/kuree/archipelago
url = https://github.com/mcoduoza/archipelago
branch = master
[submodule "cgra_pnr"]
path = cgra_pnr
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RUN source bin/activate && \
pip install urllib3==1.26.15 && \
pip install wheel six && \
pip install systemrdl-compiler peakrdl-html && \
pip install packaging==21.3 && \
pip install packaging && \
pip install importlib_resources && \
echo DONE

Expand Down
38 changes: 38 additions & 0 deletions aha/util/application_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,44 @@
"SWEEP_PNR_PLACER_EXP":"1"
}
},
"apps/maxpooling":{
"default":{
"HALIDE_GEN_ARGS":"in_img=58 ksize=3 stride=2 n_ic=56 unroll=7",
"HL_TARGET":"host-x86-64",
"DISABLE_GP":"1",
"PNR_PLACER_EXP":"15"
},
"fastest":{
"HALIDE_GEN_ARGS":"in_img=58 ksize=3 stride=2 n_ic=56 unroll=7",
"HL_TARGET":"host-x86-64",
"DISABLE_GP":"1"
},
"sweep":{
"HALIDE_GEN_ARGS":"in_img=58 ksize=3 stride=2 n_ic=56 unroll=7",
"HL_TARGET":"host-x86-64",
"DISABLE_GP":"1",
"SWEEP_PNR_PLACER_EXP":"1"
}
},
"apps/maxpooling_fp":{
"default":{
"HALIDE_GEN_ARGS":"in_img=29 ksize=3 stride=2 n_ic=28 unroll=7",
"HL_TARGET":"host-x86-64-bfloat_hardware",
"DISABLE_GP":"1",
"PNR_PLACER_EXP":"6"
},
"fastest":{
"HALIDE_GEN_ARGS":"in_img=29 ksize=3 stride=2 n_ic=28 unroll=7",
"HL_TARGET":"host-x86-64-bfloat_hardware",
"DISABLE_GP":"1"
},
"sweep":{
"HALIDE_GEN_ARGS":"in_img=29 ksize=3 stride=2 n_ic=28 unroll=7",
"HL_TARGET":"host-x86-64-bfloat_hardware",
"DISABLE_GP":"1",
"SWEEP_PNR_PLACER_EXP":"1"
}
},
"conv1":{
"default":{
"HALIDE_GEN_ARGS":"in_img=32 pad=3 ksize=7 stride=2 n_ic=3 n_oc=64 k_ic=3 k_oc=4",
Expand Down
103 changes: 77 additions & 26 deletions aha/util/regress.py

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions aha/util/regress_tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def __init__(self, testname):
"tensor3_ttv",
]
glb_tests = [
"apps/maxpooling",
"apps/pointwise",
"apps/gaussian",
"apps/camera_pipeline_2x2",
Expand Down Expand Up @@ -207,6 +208,7 @@ def __init__(self, testname):

]
glb_tests = [
"apps/maxpooling",
"apps/pointwise",
"tests/rom",
"tests/arith",
Expand All @@ -231,15 +233,14 @@ def __init__(self, testname):
"apps/unsharp",
"apps/harris_color",
"apps/camera_pipeline_2x2",
"apps/maxpooling",
"apps/matrix_multiplication"
]
glb_tests_fp = [
"apps/maxpooling_fp",
"tests/fp_pointwise",
"tests/fp_arith",
"tests/fp_comp",
"tests/fp_conv_7_7",
"apps/maxpooling_fp",
"apps/matrix_multiplication_fp",
"apps/mcunet_in_sequential_0_fp",
"apps/depthwise_conv_stream_fp",
Expand Down
9 changes: 9 additions & 0 deletions aha/util/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ def dispatch(args, extra_args=None):
if args.sparse:

try:

subprocess_call_log (
cmd=["make", "clean_sparse_outputs"],
cwd=str(args.aha_dir / "garnet" / "tests" / "test_app"),
env=env,
log=args.log,
log_file_path=log_file_path
)

if args.run:
subprocess_call_log (
cmd=["make", "run"] + extra_args,
Expand Down
2 changes: 1 addition & 1 deletion archipelago
2 changes: 1 addition & 1 deletion canal

0 comments on commit a853929

Please sign in to comment.