-
Notifications
You must be signed in to change notification settings - Fork 46
/
run_dpe_cnn.sh
executable file
·41 lines (30 loc) · 1.6 KB
/
run_dpe_cnn.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# PipeLayer is not applicable for emulator simulations, as their outer product
# requires ReRam access and thereby compiler access
## Use this for MLP benchmark
#net="mlpPanther"
## Use here for CNN benchmark
net=$1
# Setup config file based on network
cp "/home/aankit/dpe_emulate/include/$net/config.py" "/home/aankit/dpe_emulate/include/config.py"
# run panther - optimized (mixed precision)
suffix="panther"
cp "include/mlpPanther/constants_$suffix.py" "include/constants.py"
python src/dpe.py -n $net | tee "trace-$suffix.txt"
mv "/home/aankit/dpe_emulate/test/traces/$net" "/home/aankit/dpe_emulate/test/traces/$net-$suffix"
mv "trace-$suffix.txt" "/home/aankit/dpe_emulate/test/traces/trace-$net-$suffix"
# run allCMOS - optimized (mixed precision)
suffix="digital"
cp "include/mlpPanther/constants_$suffix.py" "include/constants.py"
python src/dpe.py -n $net | tee "trace-$suffix.txt"
mv "/home/aankit/dpe_emulate/test/traces/$net" "/home/aankit/dpe_emulate/test/traces/$net-$suffix"
mv "trace-$suffix.txt" "/home/aankit/dpe_emulate/test/traces/trace-$net-$suffix"
# run cmosOP - optimized (mixed precision)
suffix="cmosOP"
cp "include/mlpPanther/constants_$suffix.py" "include/constants.py"
python src/dpe.py -n $net | tee "trace-$suffix.txt"
mv "/home/aankit/dpe_emulate/test/traces/$net" "/home/aankit/dpe_emulate/test/traces/$net-$suffix"
mv "trace-$suffix.txt" "/home/aankit/dpe_emulate/test/traces/trace-$net-$suffix"
# move all traces to $net folder
mkdir /home/aankit/dpe_emulate/test/traces/$net
#mv /home/aankit/dpe_emulate/test/traces/trace-* $net/
#mv /home/aankit/dpe_emulate/test/traces/$net-* $net/