parent
34e8731854
commit
08e87492c0
@ -0,0 +1 @@
|
|||||||
|
out.png
|
After Width: | Height: | Size: 606 KiB |
After Width: | Height: | Size: 2.9 MiB |
@ -0,0 +1,31 @@
|
|||||||
|
SLEDGE_BINARY_DIR=../../runtime/bin
|
||||||
|
HOSTNAME=localhost
|
||||||
|
|
||||||
|
default: run
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf res/*
|
||||||
|
|
||||||
|
run:
|
||||||
|
LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} ${SLEDGE_BINARY_DIR}/sledgert spec.json
|
||||||
|
|
||||||
|
debug:
|
||||||
|
SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert --eval-command="run spec.json"
|
||||||
|
|
||||||
|
valgrind:
|
||||||
|
SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} valgrind --leak-check=full --max-stackframe=11150456 --run-libc-freeres=no --run-cxx-freeres=no ${SLEDGE_BINARY_DIR}/sledgert spec.json
|
||||||
|
|
||||||
|
# client:
|
||||||
|
# curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" "${HOSTNAME}:10000/gocr"
|
||||||
|
|
||||||
|
# client2:
|
||||||
|
# curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@../handwriting/handwrt1.pnm" "${HOSTNAME}:10000/gocr"
|
||||||
|
|
||||||
|
# client3:
|
||||||
|
# curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@../fivebyeight/5x8.pnm" "${HOSTNAME}:10000/gocr"
|
||||||
|
|
||||||
|
# cat ./0_rgb.png ./0_depth.png | http ${HOSTNAME}:10000/depth_to_xyz?3011515&620608&test > ./out.png
|
||||||
|
|
||||||
|
.PHONY: client
|
||||||
|
client:
|
||||||
|
cat ./0_rgb.png ./0_depth.png | http "${HOSTNAME}:10000/depth_to_xyz?3011515&620608" > ./out.png
|
@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "cmu",
|
||||||
|
"port": 10000,
|
||||||
|
"replenishment-period-us": 0,
|
||||||
|
"max-budget-us": 0,
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"route": "/depth_to_xyz",
|
||||||
|
"path": "depth_to_xyz.wasm.so",
|
||||||
|
"expected-execution-us": 5000,
|
||||||
|
"relative-deadline-us": 360000,
|
||||||
|
"http-resp-size": 5335057,
|
||||||
|
"http-resp-content-type": "img/png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in new issue