Skip to content

Commit

Permalink
rebase on awsm_master
Browse files Browse the repository at this point in the history
  • Loading branch information
emil916 committed Feb 14, 2024
2 parents 60e9c2a + e804863 commit ac297fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
# job control
jobs:
format:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Clang Format
Expand All @@ -29,7 +29,7 @@ jobs:
run: cargo fmt -- --check

test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: always()

strategy:
Expand Down
11 changes: 10 additions & 1 deletion applications/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ dist/%.bc: ./wasm_apps/dist/%.wasm dist
dist/%.ll: dist/%.bc
llvm-dis-12 $< -o $@

# By default choose the bc.mini.awsm mode:
dist/%.awsm: dist/%.bc.mini.awsm ;

dist/%.bc.mini.awsm: dist/%.bc ${WASM_INSTRUCTIONS} ${WASI_MINIMAL_CPATH}
${CC} -lm -O3 -flto ${RUNTIME_MINIMAL_INCLUDES} $^ -o $@

Expand All @@ -57,7 +60,7 @@ dist/%.so.mini.awsm: dist
${CC} ${RUNTIME_MINIMAL_INCLUDES} ${CFLAGS} -Wl,--export-dynamic -ldl -lm ${WASI_SO_MINIMAL_CPATH} -o $@

# UVWASI version does not work now, since libuv_a.a and libuvwai_a.a were NOT complied with -fPIC option
# dist/%.so.uvwasi.awsm: ${WASI_UVWASI_CPATH}
# dist/%.so.uvwasi.awsm: dist ${WASI_UVWASI_CPATH}
# ${CC} ${RUNTIME_UVWASI_INCLUDES} -pthread -D_GNU_SOURCE ${CFLAGS} ${LDFLAGS_UVWASI_so} $^ -o $@

dist/armstrong-numbers.awsm: dist/armstrong-numbers.bc armstrong-numbers/main.c ${RUNTIME_PATH}/runtime.c ${RUNTIME_PATH}/memory/64bit_nix.c
Expand Down Expand Up @@ -163,6 +166,7 @@ all.awsm: \
dist/trap_divzero.awsm \
dist/stack_overflow.awsm \
dist/license_plate_detection.awsm \
dist/cnn_face_detection.awsm \
dist/gps_ekf.awsm \
# dist/app_nn.out \
# dist/custom_libjpeg.awsm \
Expand Down Expand Up @@ -266,6 +270,10 @@ bench/resize_image.awsm.csv: dist/resize_image.awsm bench
hyperfine -w 10 --export-csv $@ \
-n $(subst dist/,,$<) './$< <wasm_apps/sod/samples/plate.jpg'

bench/cnn_face_detection.awsm.csv: dist/cnn_face_detection.awsm bench
hyperfine -w 10 --export-csv $@ \
-n $(subst dist/,,$<) './$< <wasm_apps/sod/samples/cnn_faces.jpg'

bench/traps.awsm.csv: bench dist/traps.awsm
hyperfine -N -w 10 --export-csv $@ \
-n $(subst dist/,,$<) 'echo "0" | ./$<'
Expand Down Expand Up @@ -335,6 +343,7 @@ BENCHMARKS= \
bench/pb_stencils_jacobi_2d.csv \
bench/license_plate_detection.csv \
bench/resize_image.csv \
bench/cnn_face_detection.csv \
bench/traps.csv

# Disabled due to various reasons
Expand Down
2 changes: 1 addition & 1 deletion applications/wasm_apps
Submodule wasm_apps updated 5 files
+21 −0 Makefile
+7 −0 hash/.gitignore
+62 −0 hash/Makefile
+121 −0 hash/main.c
+1 −1 sod

0 comments on commit ac297fb

Please sign in to comment.