brute_force_parallel.sh 652 Bytes
Newer Older
Long Chung Chan's avatar
Long Chung Chan committed
1 2 3 4 5 6
#! /bin/bash

# declare -a nets=(FasterRCNN mobilenet yolo_tiny googlenet alexnet AlphaGoZero ncf_rec resnet_50_v1)
declare -a layers=(46 27 10 58 8 8 8 53)
declare -a max_partitions=(7 7 7 7 7 7 7 7)

LongChan's avatar
LongChan committed
7 8
# this script is designed to be use 
# with tmux to use multi-processing
Long Chung Chan's avatar
Long Chung Chan committed
9 10 11 12 13 14
net=$1
for partitions in `seq 2 ${max_partitions[$i]}`;
do
    for res_unit in 960;
    do
        for target in DRAM_cycle;
LongChan's avatar
LongChan committed
15
        do
Long Chung Chan's avatar
Long Chung Chan committed
16
            echo $net $partitions $target
LongChan's avatar
LongChan committed
17
            python3 ../approaches/brute_force_approach.py \
Long Chung Chan's avatar
Long Chung Chan committed
18 19 20 21
                ${net} \
                ${partitions} \
                ${res_unit} \
                ${target}
LongChan's avatar
LongChan committed
22
        done
Long Chung Chan's avatar
Long Chung Chan committed
23 24
    done
done