-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_devstones.sh
executable file
·42 lines (39 loc) · 1.4 KB
/
run_devstones.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
38
39
40
41
42
#!/bin/zsh
PREFIX=generated_`date +%Y%m%d`
EXTERNAL=100
INTERNAL=100
EVENTS=events.txt
mkdir -p ${PREFIX}
cp events.txt ${PREFIX}/events.txt
# Here we generated models for Cadmium
for D in `seq 2 1 10`; do
for W in `seq 2 1 10`; do
echo "Generating model W:${W} D:${D}"
./cadmium-devstone \
--kind=LI \
--width=${W} \
--depth=${D} \
--ext-cycles=${EXTERNAL} \
--int-cycles=${INTERNAL} \
--event-list=${EVENTS}\
--output="${PREFIX}/LI_DEVSTONE_D${D}_W${W}.cpp"
done
done
# Here we build the generated models and log their metrics
for D in `seq 2 1 10`; do
for W in `seq 2 1 10`; do
echo "Building model W:${W} D:${D}"
/usr/bin/time -f "%e" \
clang++ --std=c++17 -ftemplate-depth=2048 -Isimulators/cadmium/include -Isrc \
"${PREFIX}/LI_DEVSTONE_D${D}_W${W}.cpp" dhry/dhry_1.o dhry/dhry_2.o \
-o "${PREFIX}/LI_DEVSTONE_D${D}_W${W}"
done
done
# Here we run the generated models and log their executions
for D in `seq 2 1 10`; do
for W in `seq 2 1 10`; do
echo "Running model W:${W} D:${D}"
/usr/bin/time -f "%e" \
"${PREFIX}/LI_DEVSTONE_D${D}_W${W}"
done
done