-
Notifications
You must be signed in to change notification settings - Fork 16
/
test.mk
executable file
·137 lines (106 loc) · 3.81 KB
/
test.mk
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# This Makefile builds a variety of synthetic and real-world applications ported to SLEdge
#
# Some of the tests generate experimental results in the form of charts of *.csv files. Refer to
# the relevant directory for specifics.
# gocr - GNU Optical Character Recognition
./runtime/bin/gocr.wasm.so:
make gocr.install -C ./applications
PHONY: gocr__by_dpi
gocr__by_dpi: ./runtime/bin/gocr.wasm.so
cd ./tests/gocr/by_dpi && ./run.sh
PHONY: gocr__by_font
gocr__by_font: ./runtime/bin/gocr.wasm.so
cd ./tests/gocr/by_font && ./run.sh
PHONY: gocr__by_word
gocr__by_word: ./runtime/bin/gocr.wasm.so
cd ./tests/gocr/by_word && ./run.sh
PHONY: gocr__fivebyeight
gocr__fivebyeight: ./runtime/bin/gocr.wasm.so
cd ./tests/gocr/fivebyeight && ./run.sh
PHONY: gocr__handwriting
gocr__handwriting: ./runtime/bin/gocr.wasm.so
cd ./tests/gocr/handwriting && ./run.sh
PHONY: gocr__hyde
gocr__hyde: ./runtime/bin/gocr.wasm.so
cd ./tests/gocr/hyde && ./run.sh
PHONY: gocr_all
gocr__all: \
gocr__by_dpi \
gocr__by_font \
gocr__by_word \
gocr__fivebyeight \
gocr__handwriting \
gocr__hyde
# Extended Kalman Filter applied to binary GPS data
./runtime/bin/gps_ekf.wasm.so:
make gps_ekf.install -C ./applications
PHONY: ekf__by_iteration
ekf__by_iteration: ./runtime/bin/gps_ekf.wasm.so
cd ./tests/TinyEKF/by_iteration && ./run.sh
PHONY: ekf__one_iteration
ekf__one_iteration: ./runtime/bin/gps_ekf.wasm.so
cd ./tests/TinyEKF/one_iteration && ./run.sh
PHONY: ekf__all
ekf__all: \
ekf__by_iteration \
ekf__one_iteration
# CIFAR10-based Image Classification
./runtime/bin/cifar10.wasm.so:
make cifar10.install -C ./applications
PHONY: cifar10__image_classification
cifar10__image_classification: ./runtime/bin/cifar10.wasm.so
cd ./tests/CMSIS_5_NN/imageclassification && ./run.sh
PHONY: cifar10__all
cifar10__all: \
cifar10__image_classification
# SOD Computer Vision / ML Applications
# https://sod.pixlab.io/
# SOD - Image Resize
./runtime/bin/resize_image.wasm.so:
make resize_image.install -C ./applications
# Commented out command installs imagemagick. Requires password for sudo to install
PHONY: sod__image_resize__test
sod__image_resize__test: ./runtime/bin/resize_image.wasm.so
# cd ./tests/sod/image_resize/test && ./install.sh
cd ./tests/sod/image_resize/test && ./run.sh
PHONY: sod__image_resize__by_resolution
sod__image_resize__by_resolution: ./runtime/bin/resize_image.wasm.so
# cd ./tests/sod/image_resize/by_resolution && ./install.sh
cd ./tests/sod/image_resize/by_resolution && ./run.sh
# SOD - License Plate Detection
./runtime/bin/license_plate_detection.wasm.so:
make license_plate_detection.install -C ./applications
PHONY: sod__lpd__by_plate_count
sod__lpd__by_plate_count: ./runtime/bin/license_plate_detection.wasm.so
cd ./tests/sod/lpd/by_plate_count && ./run.sh
PHONY: sod__all
sod__all: sod__image_resize__test sod__image_resize__by_resolution sod__lpd__by_plate_count
# Scheduler Experiments with synthetic workloads
./runtime/bin/fibonacci.wasm.so:
make fibonacci.install -C ./applications
PHONY: fibonacci__bimodal
fibonacci__bimodal: ./runtime/bin/fibonacci.wasm.so
cd ./tests/fibonacci/bimodal/ && ./run.sh
./runtime/bin/empty.wasm.so:
make empty.install -C ./applications
PHONY: empty__concurrency
empty__concurrency: ./runtime/bin/empty.wasm.so
# cd ./tests/empty/concurrency/ && ./install.sh
cd ./tests/empty/concurrency/ && ./run.sh
./runtime/bin/trap_divzero.wasm.so:
make trap_divzero.install -C ./applications
PHONY: trap_divzero
trap_divzero: ./runtime/bin/trap_divzero.wasm.so
cd ./tests/traps/ && ./run.sh
./runtime/bin/stack_overflow.wasm.so:
make stack_overflow.install -C ./applications
PHONY: stack_overflow
stack_overflow: ./runtime/bin/stack_overflow.wasm.so
cd ./tests/stack_overflow/ && ./run.sh
all: \
gocr__all \
ekf__all \
cifar10__all \
sod__all \
fibonacci__bimodal \
empty__concurrency