-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d0d140
commit 1b1690c
Showing
6 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule DSEGraphAnalysis
deleted from
9b3793
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from peak import Peak, family_closure | ||
from peak import family | ||
from peak.family import AbstractFamily | ||
|
||
@family_closure | ||
def addshr_fc(family: AbstractFamily): | ||
Data = family.BitVector[16] | ||
UInt = family.Unsigned[16] | ||
@family.assemble(locals(), globals()) | ||
class addshr(Peak): | ||
|
||
def __call__(self, in0: Data, in1: Data, in2: Data) -> Data: | ||
return Data(UInt(in1) + UInt(in0)) >> in2 | ||
|
||
return addshr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if [ "$1" = "mine" ] | ||
then | ||
cd APEX | ||
python dse_graph_analysis.py -f ../Halide-to-Hardware/apps/hardware_benchmarks/apps/gaussian/bin/gaussian_compute.json 20 -f ../Halide-to-Hardware/apps/hardware_benchmarks/apps/harris/bin/harris_compute.json 20 --subgraph-mining-only | ||
cd .. | ||
fi | ||
|
||
if [ "$1" = "specialize" ] | ||
then | ||
cd APEX | ||
python dse_graph_analysis.py -f ../Halide-to-Hardware/apps/hardware_benchmarks/apps/gaussian/bin/gaussian_compute.json 1 -f ../Halide-to-Hardware/apps/hardware_benchmarks/apps/harris/bin/harris_compute.json 0 6 -c | ||
cd .. | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from peak import Peak, family_closure | ||
from peak import family | ||
from peak.family import AbstractFamily | ||
|
||
@family_closure | ||
def addshr_fc(family: AbstractFamily): | ||
Data = family.BitVector[16] | ||
UInt = family.Unsigned[16] | ||
@family.assemble(locals(), globals()) | ||
class addshr(Peak): | ||
|
||
def __call__(self, in0: Data, in1: Data, in2: Data) -> Data: | ||
return Data(UInt(in1) + UInt(in0)) >> in2 | ||
|
||
return addshr |