From 09e7f9c084525b68f88bc6f91ca33cacc7fc2000 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 09:15:29 -0400 Subject: [PATCH 1/9] chore: move by_dpi into ocr dir --- runtime/experiments/applications/{ => ocr}/by_dpi/.gitignore | 0 runtime/experiments/applications/{ => ocr}/by_dpi/README.md | 0 runtime/experiments/applications/{ => ocr}/by_dpi/debug.sh | 2 +- runtime/experiments/applications/{ => ocr}/by_dpi/install.sh | 0 runtime/experiments/applications/{ => ocr}/by_dpi/run.sh | 2 +- runtime/experiments/applications/{ => ocr}/by_dpi/spec.json | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/{ => ocr}/by_dpi/.gitignore (100%) rename runtime/experiments/applications/{ => ocr}/by_dpi/README.md (100%) rename runtime/experiments/applications/{ => ocr}/by_dpi/debug.sh (94%) rename runtime/experiments/applications/{ => ocr}/by_dpi/install.sh (100%) rename runtime/experiments/applications/{ => ocr}/by_dpi/run.sh (97%) rename runtime/experiments/applications/{ => ocr}/by_dpi/spec.json (100%) diff --git a/runtime/experiments/applications/by_dpi/.gitignore b/runtime/experiments/applications/ocr/by_dpi/.gitignore similarity index 100% rename from runtime/experiments/applications/by_dpi/.gitignore rename to runtime/experiments/applications/ocr/by_dpi/.gitignore diff --git a/runtime/experiments/applications/by_dpi/README.md b/runtime/experiments/applications/ocr/by_dpi/README.md similarity index 100% rename from runtime/experiments/applications/by_dpi/README.md rename to runtime/experiments/applications/ocr/by_dpi/README.md diff --git a/runtime/experiments/applications/by_dpi/debug.sh b/runtime/experiments/applications/ocr/by_dpi/debug.sh similarity index 94% rename from runtime/experiments/applications/by_dpi/debug.sh rename to runtime/experiments/applications/ocr/by_dpi/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/by_dpi/debug.sh +++ b/runtime/experiments/applications/ocr/by_dpi/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/by_dpi/install.sh b/runtime/experiments/applications/ocr/by_dpi/install.sh similarity index 100% rename from runtime/experiments/applications/by_dpi/install.sh rename to runtime/experiments/applications/ocr/by_dpi/install.sh diff --git a/runtime/experiments/applications/by_dpi/run.sh b/runtime/experiments/applications/ocr/by_dpi/run.sh similarity index 97% rename from runtime/experiments/applications/by_dpi/run.sh rename to runtime/experiments/applications/ocr/by_dpi/run.sh index c5f49ce..938a43b 100755 --- a/runtime/experiments/applications/by_dpi/run.sh +++ b/runtime/experiments/applications/ocr/by_dpi/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) log="$experiment_directory/log.csv" diff --git a/runtime/experiments/applications/by_dpi/spec.json b/runtime/experiments/applications/ocr/by_dpi/spec.json similarity index 100% rename from runtime/experiments/applications/by_dpi/spec.json rename to runtime/experiments/applications/ocr/by_dpi/spec.json From d809869ed76ad073a9361847bf4fb4c6cc51866e Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 09:18:48 -0400 Subject: [PATCH 2/9] chore: move by_font into ocr dir --- runtime/experiments/applications/{ => ocr}/by_font/.gitignore | 0 runtime/experiments/applications/{ => ocr}/by_font/README.md | 0 runtime/experiments/applications/{ => ocr}/by_font/debug.sh | 2 +- runtime/experiments/applications/{ => ocr}/by_font/install.sh | 0 runtime/experiments/applications/{ => ocr}/by_font/run.sh | 2 +- runtime/experiments/applications/{ => ocr}/by_font/spec.json | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/{ => ocr}/by_font/.gitignore (100%) rename runtime/experiments/applications/{ => ocr}/by_font/README.md (100%) rename runtime/experiments/applications/{ => ocr}/by_font/debug.sh (94%) rename runtime/experiments/applications/{ => ocr}/by_font/install.sh (100%) rename runtime/experiments/applications/{ => ocr}/by_font/run.sh (98%) rename runtime/experiments/applications/{ => ocr}/by_font/spec.json (100%) diff --git a/runtime/experiments/applications/by_font/.gitignore b/runtime/experiments/applications/ocr/by_font/.gitignore similarity index 100% rename from runtime/experiments/applications/by_font/.gitignore rename to runtime/experiments/applications/ocr/by_font/.gitignore diff --git a/runtime/experiments/applications/by_font/README.md b/runtime/experiments/applications/ocr/by_font/README.md similarity index 100% rename from runtime/experiments/applications/by_font/README.md rename to runtime/experiments/applications/ocr/by_font/README.md diff --git a/runtime/experiments/applications/by_font/debug.sh b/runtime/experiments/applications/ocr/by_font/debug.sh similarity index 94% rename from runtime/experiments/applications/by_font/debug.sh rename to runtime/experiments/applications/ocr/by_font/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/by_font/debug.sh +++ b/runtime/experiments/applications/ocr/by_font/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/by_font/install.sh b/runtime/experiments/applications/ocr/by_font/install.sh similarity index 100% rename from runtime/experiments/applications/by_font/install.sh rename to runtime/experiments/applications/ocr/by_font/install.sh diff --git a/runtime/experiments/applications/by_font/run.sh b/runtime/experiments/applications/ocr/by_font/run.sh similarity index 98% rename from runtime/experiments/applications/by_font/run.sh rename to runtime/experiments/applications/ocr/by_font/run.sh index 86234ed..cb526a9 100755 --- a/runtime/experiments/applications/by_font/run.sh +++ b/runtime/experiments/applications/ocr/by_font/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) log="$experiment_directory/log.csv" diff --git a/runtime/experiments/applications/by_font/spec.json b/runtime/experiments/applications/ocr/by_font/spec.json similarity index 100% rename from runtime/experiments/applications/by_font/spec.json rename to runtime/experiments/applications/ocr/by_font/spec.json From bc48284d372fa509f37e25dda999390373fc53fb Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 09:22:34 -0400 Subject: [PATCH 3/9] chore: move by_word into ocr dir --- runtime/experiments/applications/{ => ocr}/by_word/.gitignore | 0 runtime/experiments/applications/{ => ocr}/by_word/README.md | 0 runtime/experiments/applications/{ => ocr}/by_word/debug.sh | 2 +- runtime/experiments/applications/{ => ocr}/by_word/install.sh | 0 runtime/experiments/applications/{ => ocr}/by_word/run.sh | 2 +- runtime/experiments/applications/{ => ocr}/by_word/spec.json | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/{ => ocr}/by_word/.gitignore (100%) rename runtime/experiments/applications/{ => ocr}/by_word/README.md (100%) rename runtime/experiments/applications/{ => ocr}/by_word/debug.sh (94%) rename runtime/experiments/applications/{ => ocr}/by_word/install.sh (100%) rename runtime/experiments/applications/{ => ocr}/by_word/run.sh (97%) rename runtime/experiments/applications/{ => ocr}/by_word/spec.json (100%) diff --git a/runtime/experiments/applications/by_word/.gitignore b/runtime/experiments/applications/ocr/by_word/.gitignore similarity index 100% rename from runtime/experiments/applications/by_word/.gitignore rename to runtime/experiments/applications/ocr/by_word/.gitignore diff --git a/runtime/experiments/applications/by_word/README.md b/runtime/experiments/applications/ocr/by_word/README.md similarity index 100% rename from runtime/experiments/applications/by_word/README.md rename to runtime/experiments/applications/ocr/by_word/README.md diff --git a/runtime/experiments/applications/by_word/debug.sh b/runtime/experiments/applications/ocr/by_word/debug.sh similarity index 94% rename from runtime/experiments/applications/by_word/debug.sh rename to runtime/experiments/applications/ocr/by_word/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/by_word/debug.sh +++ b/runtime/experiments/applications/ocr/by_word/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/by_word/install.sh b/runtime/experiments/applications/ocr/by_word/install.sh similarity index 100% rename from runtime/experiments/applications/by_word/install.sh rename to runtime/experiments/applications/ocr/by_word/install.sh diff --git a/runtime/experiments/applications/by_word/run.sh b/runtime/experiments/applications/ocr/by_word/run.sh similarity index 97% rename from runtime/experiments/applications/by_word/run.sh rename to runtime/experiments/applications/ocr/by_word/run.sh index e4a4354..f1f098a 100755 --- a/runtime/experiments/applications/by_word/run.sh +++ b/runtime/experiments/applications/ocr/by_word/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) log="$experiment_directory/log.csv" diff --git a/runtime/experiments/applications/by_word/spec.json b/runtime/experiments/applications/ocr/by_word/spec.json similarity index 100% rename from runtime/experiments/applications/by_word/spec.json rename to runtime/experiments/applications/ocr/by_word/spec.json From c93c380771673718a1ec59b99dabf1a5e1b7f94a Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 09:25:38 -0400 Subject: [PATCH 4/9] chore: move hyde into ocr dir --- .../applications/{ => ocr}/hyde/README.md | 0 .../applications/{ => ocr}/hyde/debug.sh | 2 +- .../applications/{ => ocr}/hyde/expected_result.txt | 0 .../applications/{ => ocr}/hyde/hyde.jpg | Bin .../applications/{ => ocr}/hyde/hyde.pnm | 0 .../experiments/applications/{ => ocr}/hyde/run.sh | 2 +- .../applications/{ => ocr}/hyde/spec.json | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/{ => ocr}/hyde/README.md (100%) rename runtime/experiments/applications/{ => ocr}/hyde/debug.sh (94%) rename runtime/experiments/applications/{ => ocr}/hyde/expected_result.txt (100%) rename runtime/experiments/applications/{ => ocr}/hyde/hyde.jpg (100%) rename runtime/experiments/applications/{ => ocr}/hyde/hyde.pnm (100%) rename runtime/experiments/applications/{ => ocr}/hyde/run.sh (96%) rename runtime/experiments/applications/{ => ocr}/hyde/spec.json (100%) diff --git a/runtime/experiments/applications/hyde/README.md b/runtime/experiments/applications/ocr/hyde/README.md similarity index 100% rename from runtime/experiments/applications/hyde/README.md rename to runtime/experiments/applications/ocr/hyde/README.md diff --git a/runtime/experiments/applications/hyde/debug.sh b/runtime/experiments/applications/ocr/hyde/debug.sh similarity index 94% rename from runtime/experiments/applications/hyde/debug.sh rename to runtime/experiments/applications/ocr/hyde/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/hyde/debug.sh +++ b/runtime/experiments/applications/ocr/hyde/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/hyde/expected_result.txt b/runtime/experiments/applications/ocr/hyde/expected_result.txt similarity index 100% rename from runtime/experiments/applications/hyde/expected_result.txt rename to runtime/experiments/applications/ocr/hyde/expected_result.txt diff --git a/runtime/experiments/applications/hyde/hyde.jpg b/runtime/experiments/applications/ocr/hyde/hyde.jpg similarity index 100% rename from runtime/experiments/applications/hyde/hyde.jpg rename to runtime/experiments/applications/ocr/hyde/hyde.jpg diff --git a/runtime/experiments/applications/hyde/hyde.pnm b/runtime/experiments/applications/ocr/hyde/hyde.pnm similarity index 100% rename from runtime/experiments/applications/hyde/hyde.pnm rename to runtime/experiments/applications/ocr/hyde/hyde.pnm diff --git a/runtime/experiments/applications/hyde/run.sh b/runtime/experiments/applications/ocr/hyde/run.sh similarity index 96% rename from runtime/experiments/applications/hyde/run.sh rename to runtime/experiments/applications/ocr/hyde/run.sh index 32a6d6d..2d46d22 100755 --- a/runtime/experiments/applications/hyde/run.sh +++ b/runtime/experiments/applications/ocr/hyde/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) if [ "$1" != "-d" ]; then diff --git a/runtime/experiments/applications/hyde/spec.json b/runtime/experiments/applications/ocr/hyde/spec.json similarity index 100% rename from runtime/experiments/applications/hyde/spec.json rename to runtime/experiments/applications/ocr/hyde/spec.json From e2a30d873d835e01bcc375cd9915aab216da949a Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 09:27:58 -0400 Subject: [PATCH 5/9] chore: move fivebyeight into ocr dir --- .../applications/{ => ocr}/fivebyeight/5x8.png | Bin .../applications/{ => ocr}/fivebyeight/5x8.pnm | 0 .../applications/{ => ocr}/fivebyeight/README.md | 0 .../applications/{ => ocr}/fivebyeight/debug.sh | 2 +- .../{ => ocr}/fivebyeight/expected_result.txt | 0 .../applications/{ => ocr}/fivebyeight/run.sh | 2 +- .../applications/{ => ocr}/fivebyeight/spec.json | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/{ => ocr}/fivebyeight/5x8.png (100%) rename runtime/experiments/applications/{ => ocr}/fivebyeight/5x8.pnm (100%) rename runtime/experiments/applications/{ => ocr}/fivebyeight/README.md (100%) rename runtime/experiments/applications/{ => ocr}/fivebyeight/debug.sh (94%) rename runtime/experiments/applications/{ => ocr}/fivebyeight/expected_result.txt (100%) rename runtime/experiments/applications/{ => ocr}/fivebyeight/run.sh (96%) rename runtime/experiments/applications/{ => ocr}/fivebyeight/spec.json (100%) diff --git a/runtime/experiments/applications/fivebyeight/5x8.png b/runtime/experiments/applications/ocr/fivebyeight/5x8.png similarity index 100% rename from runtime/experiments/applications/fivebyeight/5x8.png rename to runtime/experiments/applications/ocr/fivebyeight/5x8.png diff --git a/runtime/experiments/applications/fivebyeight/5x8.pnm b/runtime/experiments/applications/ocr/fivebyeight/5x8.pnm similarity index 100% rename from runtime/experiments/applications/fivebyeight/5x8.pnm rename to runtime/experiments/applications/ocr/fivebyeight/5x8.pnm diff --git a/runtime/experiments/applications/fivebyeight/README.md b/runtime/experiments/applications/ocr/fivebyeight/README.md similarity index 100% rename from runtime/experiments/applications/fivebyeight/README.md rename to runtime/experiments/applications/ocr/fivebyeight/README.md diff --git a/runtime/experiments/applications/fivebyeight/debug.sh b/runtime/experiments/applications/ocr/fivebyeight/debug.sh similarity index 94% rename from runtime/experiments/applications/fivebyeight/debug.sh rename to runtime/experiments/applications/ocr/fivebyeight/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/fivebyeight/debug.sh +++ b/runtime/experiments/applications/ocr/fivebyeight/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/fivebyeight/expected_result.txt b/runtime/experiments/applications/ocr/fivebyeight/expected_result.txt similarity index 100% rename from runtime/experiments/applications/fivebyeight/expected_result.txt rename to runtime/experiments/applications/ocr/fivebyeight/expected_result.txt diff --git a/runtime/experiments/applications/fivebyeight/run.sh b/runtime/experiments/applications/ocr/fivebyeight/run.sh similarity index 96% rename from runtime/experiments/applications/fivebyeight/run.sh rename to runtime/experiments/applications/ocr/fivebyeight/run.sh index 3271539..812308d 100755 --- a/runtime/experiments/applications/fivebyeight/run.sh +++ b/runtime/experiments/applications/ocr/fivebyeight/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) if [ "$1" != "-d" ]; then diff --git a/runtime/experiments/applications/fivebyeight/spec.json b/runtime/experiments/applications/ocr/fivebyeight/spec.json similarity index 100% rename from runtime/experiments/applications/fivebyeight/spec.json rename to runtime/experiments/applications/ocr/fivebyeight/spec.json From a8193d50cdec60043270bd141cd70e44ded3d202 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 09:29:46 -0400 Subject: [PATCH 6/9] chore: move handwriting into ocr dir --- .../applications/{ => ocr}/handwriting/debug.sh | 2 +- .../{ => ocr}/handwriting/expected_result.txt | 0 .../applications/{ => ocr}/handwriting/handwrt1.jpg | Bin .../applications/{ => ocr}/handwriting/handwrt1.pnm | 0 .../applications/{ => ocr}/handwriting/run.sh | 2 +- .../applications/{ => ocr}/handwriting/spec.json | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/{ => ocr}/handwriting/debug.sh (94%) rename runtime/experiments/applications/{ => ocr}/handwriting/expected_result.txt (100%) rename runtime/experiments/applications/{ => ocr}/handwriting/handwrt1.jpg (100%) rename runtime/experiments/applications/{ => ocr}/handwriting/handwrt1.pnm (100%) rename runtime/experiments/applications/{ => ocr}/handwriting/run.sh (96%) rename runtime/experiments/applications/{ => ocr}/handwriting/spec.json (100%) diff --git a/runtime/experiments/applications/handwriting/debug.sh b/runtime/experiments/applications/ocr/handwriting/debug.sh similarity index 94% rename from runtime/experiments/applications/handwriting/debug.sh rename to runtime/experiments/applications/ocr/handwriting/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/handwriting/debug.sh +++ b/runtime/experiments/applications/ocr/handwriting/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/handwriting/expected_result.txt b/runtime/experiments/applications/ocr/handwriting/expected_result.txt similarity index 100% rename from runtime/experiments/applications/handwriting/expected_result.txt rename to runtime/experiments/applications/ocr/handwriting/expected_result.txt diff --git a/runtime/experiments/applications/handwriting/handwrt1.jpg b/runtime/experiments/applications/ocr/handwriting/handwrt1.jpg similarity index 100% rename from runtime/experiments/applications/handwriting/handwrt1.jpg rename to runtime/experiments/applications/ocr/handwriting/handwrt1.jpg diff --git a/runtime/experiments/applications/handwriting/handwrt1.pnm b/runtime/experiments/applications/ocr/handwriting/handwrt1.pnm similarity index 100% rename from runtime/experiments/applications/handwriting/handwrt1.pnm rename to runtime/experiments/applications/ocr/handwriting/handwrt1.pnm diff --git a/runtime/experiments/applications/handwriting/run.sh b/runtime/experiments/applications/ocr/handwriting/run.sh similarity index 96% rename from runtime/experiments/applications/handwriting/run.sh rename to runtime/experiments/applications/ocr/handwriting/run.sh index f6d2287..ed4ec16 100755 --- a/runtime/experiments/applications/handwriting/run.sh +++ b/runtime/experiments/applications/ocr/handwriting/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) if [ "$1" != "-d" ]; then diff --git a/runtime/experiments/applications/handwriting/spec.json b/runtime/experiments/applications/ocr/handwriting/spec.json similarity index 100% rename from runtime/experiments/applications/handwriting/spec.json rename to runtime/experiments/applications/ocr/handwriting/spec.json From 1f2d2cea9002dd333f517f6ea1df28c46cd850d0 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 10:21:23 -0400 Subject: [PATCH 7/9] chore: Move one_iteration test --- .../applications/ekf/{ => one_iteration}/.gitignore | 0 .../applications/ekf/{ => one_iteration}/README.md | 0 .../applications/ekf/{ => one_iteration}/debug.sh | 2 +- .../ekf/{ => one_iteration}/ekf_raw.dat | Bin .../ekf/{ => one_iteration}/expected_result.dat | Bin .../applications/ekf/{ => one_iteration}/run.sh | 2 +- .../applications/ekf/{ => one_iteration}/spec.json | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename runtime/experiments/applications/ekf/{ => one_iteration}/.gitignore (100%) rename runtime/experiments/applications/ekf/{ => one_iteration}/README.md (100%) rename runtime/experiments/applications/ekf/{ => one_iteration}/debug.sh (94%) rename runtime/experiments/applications/ekf/{ => one_iteration}/ekf_raw.dat (100%) rename runtime/experiments/applications/ekf/{ => one_iteration}/expected_result.dat (100%) rename runtime/experiments/applications/ekf/{ => one_iteration}/run.sh (96%) rename runtime/experiments/applications/ekf/{ => one_iteration}/spec.json (100%) diff --git a/runtime/experiments/applications/ekf/.gitignore b/runtime/experiments/applications/ekf/one_iteration/.gitignore similarity index 100% rename from runtime/experiments/applications/ekf/.gitignore rename to runtime/experiments/applications/ekf/one_iteration/.gitignore diff --git a/runtime/experiments/applications/ekf/README.md b/runtime/experiments/applications/ekf/one_iteration/README.md similarity index 100% rename from runtime/experiments/applications/ekf/README.md rename to runtime/experiments/applications/ekf/one_iteration/README.md diff --git a/runtime/experiments/applications/ekf/debug.sh b/runtime/experiments/applications/ekf/one_iteration/debug.sh similarity index 94% rename from runtime/experiments/applications/ekf/debug.sh rename to runtime/experiments/applications/ekf/one_iteration/debug.sh index a561392..6ab3666 100755 --- a/runtime/experiments/applications/ekf/debug.sh +++ b/runtime/experiments/applications/ekf/one_iteration/debug.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" diff --git a/runtime/experiments/applications/ekf/ekf_raw.dat b/runtime/experiments/applications/ekf/one_iteration/ekf_raw.dat similarity index 100% rename from runtime/experiments/applications/ekf/ekf_raw.dat rename to runtime/experiments/applications/ekf/one_iteration/ekf_raw.dat diff --git a/runtime/experiments/applications/ekf/expected_result.dat b/runtime/experiments/applications/ekf/one_iteration/expected_result.dat similarity index 100% rename from runtime/experiments/applications/ekf/expected_result.dat rename to runtime/experiments/applications/ekf/one_iteration/expected_result.dat diff --git a/runtime/experiments/applications/ekf/run.sh b/runtime/experiments/applications/ekf/one_iteration/run.sh similarity index 96% rename from runtime/experiments/applications/ekf/run.sh rename to runtime/experiments/applications/ekf/one_iteration/run.sh index dde0d66..0eb5dae 100755 --- a/runtime/experiments/applications/ekf/run.sh +++ b/runtime/experiments/applications/ekf/one_iteration/run.sh @@ -5,7 +5,7 @@ # Also disables pagination and stopping on SIGUSR1 experiment_directory=$(pwd) -project_directory=$(cd ../../.. && pwd) +project_directory=$(cd ../../../.. && pwd) binary_directory=$(cd "$project_directory"/bin && pwd) # Copy data if not here diff --git a/runtime/experiments/applications/ekf/spec.json b/runtime/experiments/applications/ekf/one_iteration/spec.json similarity index 100% rename from runtime/experiments/applications/ekf/spec.json rename to runtime/experiments/applications/ekf/one_iteration/spec.json From b0a4f9f662c05f021608809fc50fbc633fbc9091 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 17 Mar 2021 11:06:49 -0400 Subject: [PATCH 8/9] test: ekf by_iter --- .../applications/ekf/by_iteration/.gitignore | 3 + .../applications/ekf/by_iteration/README.md | 9 +++ .../applications/ekf/by_iteration/debug.sh | 19 +++++++ .../ekf/by_iteration/initial_state.dat | Bin 0 -> 5088 bytes .../ekf/by_iteration/one_iteration.dat | Bin 0 -> 5088 bytes .../applications/ekf/by_iteration/run.sh | 53 ++++++++++++++++++ .../applications/ekf/by_iteration/spec.json | 42 ++++++++++++++ .../ekf/by_iteration/three_iterations.dat | Bin 0 -> 5088 bytes .../ekf/by_iteration/two_iterations.dat | Bin 0 -> 5088 bytes 9 files changed, 126 insertions(+) create mode 100644 runtime/experiments/applications/ekf/by_iteration/.gitignore create mode 100644 runtime/experiments/applications/ekf/by_iteration/README.md create mode 100755 runtime/experiments/applications/ekf/by_iteration/debug.sh create mode 100644 runtime/experiments/applications/ekf/by_iteration/initial_state.dat create mode 100644 runtime/experiments/applications/ekf/by_iteration/one_iteration.dat create mode 100755 runtime/experiments/applications/ekf/by_iteration/run.sh create mode 100644 runtime/experiments/applications/ekf/by_iteration/spec.json create mode 100644 runtime/experiments/applications/ekf/by_iteration/three_iterations.dat create mode 100644 runtime/experiments/applications/ekf/by_iteration/two_iterations.dat diff --git a/runtime/experiments/applications/ekf/by_iteration/.gitignore b/runtime/experiments/applications/ekf/by_iteration/.gitignore new file mode 100644 index 0000000..343f11e --- /dev/null +++ b/runtime/experiments/applications/ekf/by_iteration/.gitignore @@ -0,0 +1,3 @@ +*res.dat +rt.log +log.csv diff --git a/runtime/experiments/applications/ekf/by_iteration/README.md b/runtime/experiments/applications/ekf/by_iteration/README.md new file mode 100644 index 0000000..20079c5 --- /dev/null +++ b/runtime/experiments/applications/ekf/by_iteration/README.md @@ -0,0 +1,9 @@ +# EKF + +Executes TinyEKF as shows by [You Chong's GPS example](http://www.mathworks.com/matlabcentral/fileexchange/31487-extended-kalman-filter-ekf--for-gps) + +In order to be compatible with the stdin/stdout model of serverless, the input and output files are binary concatenations of various C structs. + +See `main()` in `runtime/tests/TinyEKF/extras/c/gps_ekf_fn.c` for specifics. + +This test executes multiple iterations, comparing the binary result against a known memoized result stored at `expected_result.dat`. diff --git a/runtime/experiments/applications/ekf/by_iteration/debug.sh b/runtime/experiments/applications/ekf/by_iteration/debug.sh new file mode 100755 index 0000000..6ab3666 --- /dev/null +++ b/runtime/experiments/applications/ekf/by_iteration/debug.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Executes the runtime in GDB +# Substitutes the absolute path from the container with a path relatively derived from the location of this script +# This allows debugging outside of the Docker container +# Also disables pagination and stopping on SIGUSR1 + +experiment_directory=$(pwd) +project_directory=$(cd ../../../.. && pwd) +binary_directory=$(cd "$project_directory"/bin && pwd) + +export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" +export PATH="$binary_directory:$PATH" + +gdb --eval-command="handle SIGUSR1 nostop" \ + --eval-command="handle SIGPIPE nostop" \ + --eval-command="set pagination off" \ + --eval-command="set substitute-path /sledge/runtime $project_directory" \ + --eval-command="run $experiment_directory/spec.json" \ + sledgert diff --git a/runtime/experiments/applications/ekf/by_iteration/initial_state.dat b/runtime/experiments/applications/ekf/by_iteration/initial_state.dat new file mode 100644 index 0000000000000000000000000000000000000000..9a960e1e986d6142e00a0c8c803f8c9463a7e541 GIT binary patch literal 5088 zcmeHLdpK3;8sBcYOtyMxbdeCE65>db?^{e;rExn&Ck#p2mFg(t64Tjc%Iprc-KNro z21f|F-?i3GB)5rjDcL30i5bordUle|F6&!+o;{g|F@Mf_9^Uo7-}`%i@B3SOee6$$ zMx#jze$Me{D5)%)EZN^ z^!WzhIu^!o2)qa4+#)Rdt(1tv+YZW{e>H?7TxF}Lo&F_rI7#AE_Pk8VmmI?(iAzrI zjZL+sE;z-t=X`E(-7tdo%t|W*-pcyF}uAR}IkCs+2# zz!Ev$MP^+W2q5QkBKr&``G!ecn1mQ>-|G#qBkHci53)wE!aNKU&(ncp7Tg%06fx*V z;!4T+Mo8RQk`Ljs-k!qL)gYux?EII>wUtmes$JPpW&*^LdLAWp=_luFA^W^d@+pwG zCC1KCs_q8xsf()fFZ-pT7x^4`q@H(4T}sLMej)o@Me_BKxSd@M8mzC>;m!2-ml_m& zlmwS9{9tDN3*k2YLA;RguYQDDeC+P}!+B;$XqGToDa*R+q#yWL&hNz#Zpxk}@s{xS zFv7JzKhN^r3itbW@4Cctz2R8Y2x2VQ*f$*|w9blj6!GVHIGiq|YZ6Tk3u99VrhH@ZZ+7*8dL z3$^8?_}%>Q!B(9l+{Z;>%_gf@06(7>Vz?*|A3D3RIcie@PTvyRnf8zi_QF$tq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Qo3B>Ig8oTWjZl>UywI0@V4g!To{}NC*D}Z-M{)7y%q=fJj|MTz2R@ld`wBlW zKdCG1wiA_);!07&SIP{&18pH**V;yWsX8bh#S@f|nUtR82;Pet#~mp)1dXOyYPic$ zU;~Z3qU{7$r!TA*BR*rfP0m;M=8i|*yTxrjgekrmPfi^1#pqY`g4DZDaF;uon}kMh z!nQ1XWfgqx80N6<98tRWFgNr1cJrky56mq%TmM4!2`tOVbWrxREB3;Um#SID#Om>k wh6`J_8D?i<_PxZHd|xAD}w!*ap$L_`GWl!o!_BzJ9J+6f0vWbLjV8( literal 0 HcmV?d00001 diff --git a/runtime/experiments/applications/ekf/by_iteration/one_iteration.dat b/runtime/experiments/applications/ekf/by_iteration/one_iteration.dat new file mode 100644 index 0000000000000000000000000000000000000000..1229f11ef4c95e3f33a405927779bff326f70651 GIT binary patch literal 5088 zcmeHLc{o*T7eBW$3$cXKz^sgE2_* zx1V<+Up595t0$R8R$X-=CX4&pnnk3FD6fk!?rwQx!Uh3N#0LpWg zFSpq>f?8^87JY|TNlAH2F*2p@5v?<*XTvi$Qdc?>wckBDOc}t5J4!QBs4~G&@9tL@ zh`1;nZ}ZFLlwL_$Q~laolmXXg=y`4`)sPvkJ-Z>9@Kw%PS=(AlMaFWgtUQXTRv%N- zntiE6Pm^6iWk@;Uuu%N!V09Eh9h}pf(o#-%z7RN1o*6~RDOS}uYGx3gk$;K;uWcY4 zj=fxJbSDGpFYagi6#uzjxX#a^{+^BNVEgxsAB+4d9<$&&*y8xl+F!+EK3oS|9RFD> zCK8-D^5>Ht($}$S?_}u;t49>B#5}cYyWek3wEs2U$J@r(CCaL5rt!%Ko+M=(@o0Z+ z8F>3?ljys6uhn&jkEYhq`7&Lsw8>i6>HHPiwrUN@&uG6tzqx3BW3*}wy`EmCl)5^w ziuOJCJP)e2Z>IhJcsxIz1NYOvF4m*J#d_hnasU1M=#Rrb))(u9=lyoy7}ek6{rH~k zpWoldxc>1U^)VjXAH{ty?^o+!JhtEC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ZZ_hqN5iWxh2wfLx>#3;AB_ zi*h(NCaP>t(tT^L?vd-kc&ek-{@`@V2g h*(bR_SKAqc9GBdmt%_gz=Sl9*`1>9HZim0u{RQ<9%KHES literal 0 HcmV?d00001 diff --git a/runtime/experiments/applications/ekf/by_iteration/run.sh b/runtime/experiments/applications/ekf/by_iteration/run.sh new file mode 100755 index 0000000..870dca1 --- /dev/null +++ b/runtime/experiments/applications/ekf/by_iteration/run.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# Executes the runtime in GDB +# Substitutes the absolute path from the container with a path relatively derived from the location of this script +# This allows debugging outside of the Docker container +# Also disables pagination and stopping on SIGUSR1 + +experiment_directory=$(pwd) +runtime_directory=$(cd ../../../.. && pwd) +binary_directory=$(cd "$runtime_directory"/bin && pwd) +log="$experiment_directory/log.csv" + +# Copy data if not here +if [[ ! -f "./initial_state.dat" ]]; then + cp $runtime_directory/tests/TinyEKF/extras/c/ekf_raw.dat ./initial_state.dat +fi + +if [ "$1" != "-d" ]; then + SLEDGE_SANDBOX_PERF_LOG=$log PATH="$binary_directory:$PATH" LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" sledgert "$experiment_directory/spec.json" >rt.log 2>&1 & + sleep 2 +else + echo "Running under gdb" +fi + +one_iteration_expected_result="$(tr -d '\0' <./one_iteration.dat)" +two_iterations_expected_result="$(tr -d '\0' <./two_iterations.dat)" +three_iterations_expected_result="$(tr -d '\0' <./three_iterations.dat)" + +success_count=0 +total_count=50 + +for ((i = 0; i < total_count; i++)); do + echo "$i" + curl -H 'Expect:' -H "Content-Type: application/octet-stream" --data-binary "@initial_state.dat" localhost:10000 2>/dev/null >./one_iteration_res.dat + curl -H 'Expect:' -H "Content-Type: application/octet-stream" --data-binary "@one_iteration_res.dat" localhost:10001 2>/dev/null >./two_iterations_res.dat + curl -H 'Expect:' -H "Content-Type: application/octet-stream" --data-binary "@two_iterations_res.dat" localhost:10002 2>/dev/null >./three_iterations_res.dat + if diff -s one_iteration_res.dat one_iteration.dat && diff -s two_iterations_res.dat two_iterations.dat && diff -s three_iterations_res.dat three_iterations.dat; then + success_count=$((success_count + 1)) + else + echo "FAIL" + exit + fi + + rm *_res.dat +done + +echo "$success_count / $total_count" + +if [ "$1" != "-d" ]; then + sleep 5 + echo -n "Running Cleanup: " + pkill sledgert >/dev/null 2>/dev/null + echo "[DONE]" +fi diff --git a/runtime/experiments/applications/ekf/by_iteration/spec.json b/runtime/experiments/applications/ekf/by_iteration/spec.json new file mode 100644 index 0000000..2043944 --- /dev/null +++ b/runtime/experiments/applications/ekf/by_iteration/spec.json @@ -0,0 +1,42 @@ +{ + "active": "yes", + "name": "ekf_first_iter", + "path": "ekf_wasm.so", + "port": 10000, + "relative-deadline-us": 50000, + "argsize": 1, + "http-req-headers": [], + "http-req-content-type": "application/octet-stream", + "http-req-size": 1024000, + "http-resp-headers": [], + "http-resp-size": 1024000, + "http-resp-content-type": "application/octet-stream" +}, +{ + "active": "yes", + "name": "ekf_second_iter", + "path": "ekf_wasm.so", + "port": 10001, + "relative-deadline-us": 50000, + "argsize": 1, + "http-req-headers": [], + "http-req-content-type": "application/octet-stream", + "http-req-size": 1024000, + "http-resp-headers": [], + "http-resp-size": 1024000, + "http-resp-content-type": "application/octet-stream" +}, +{ + "active": "yes", + "name": "ekf_third_iter", + "path": "ekf_wasm.so", + "port": 10002, + "relative-deadline-us": 50000, + "argsize": 1, + "http-req-headers": [], + "http-req-content-type": "application/octet-stream", + "http-req-size": 1024000, + "http-resp-headers": [], + "http-resp-size": 1024000, + "http-resp-content-type": "application/octet-stream" +} diff --git a/runtime/experiments/applications/ekf/by_iteration/three_iterations.dat b/runtime/experiments/applications/ekf/by_iteration/three_iterations.dat new file mode 100644 index 0000000000000000000000000000000000000000..cc0ab73b218ed0c9578c425ca5666eecc94f6f3f GIT binary patch literal 5088 zcmeHLc{EjP8$W1H;ZPZ`^r6X=Q^}D1?qeQ0PRdC%sL&B9k%V+Iq)f?eo^&+bBAN%4 z{Yr$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PSs_usujG`Hf0%`a)wzM z=eUKy33g7qxMf5L0T<1E>^1wLA=DDe^!d10L3LLf{Y76ap!7rw8)McqFyg-D?<17W z09S2Dg8oZ2pnuyiElHaM@Nv+Z7Z)Ueq(|P8YDx}({U2L;g1d+-j9ORnITJMb)y_Am z*94_(PP|o|Ea<;i#LQX12@;~ zOWcv;1i&cmCqhj?<8Pt(kicPF(-&?)H|%4?#YYan9@Q~JcpVfsJss*GWUT<(XSj{p zoe)cOUR{vl>bH<8Tqi6FGYF-c8)8n3_w}G~TsnGkyj=S>qQ;rOBtR;Rx?1P7xuwjJ zz<3-l+OWRmbb1oOzpkA2?jxVBgYh^XlN@iFbYqL?x)6AVHmgDg1Ih@8>WM6)<8AO~ z(e<%5MLypUnhO?xkyP`{?%8=aBfDf3Dcjp~Jf+=_9DPuGqgtJRwhGT==9VO5(n6`r zEF^vnIaenhW-jy2K6}*GL{Z>IE)F@TyC=_|OlQq%86LTataYgVL;VJyETYolRx}5Y s)w|9%c8c!LKCO=9c8KoJk2%u={<=R~-hS<{9 literal 0 HcmV?d00001 diff --git a/runtime/experiments/applications/ekf/by_iteration/two_iterations.dat b/runtime/experiments/applications/ekf/by_iteration/two_iterations.dat new file mode 100644 index 0000000000000000000000000000000000000000..a98da81d6a116e98a9c47d947b202bfd7e6bf81b GIT binary patch literal 5088 zcmeHLdpMM78>f&C6l$H4Ln=mDIpvi18Ck8Inn|QWqeA0+)}~S6v=_dyRovyET zEa@f7ZhWU`dZ34}t|=~i%vOT~@(XQ3YWZXy;`2hdd_5Bz^G6;a%r|JT$({jDbPhX~ zN?1cL87+mQ=?0MPe~FNS8ZkzujogIK;OV;bxdgoVoqT2E_VXxr))h0xgxfeCspv0PAUm zbn!*|;W;rM#%;0+HN8K=1pS;)@p|@hV2jS78|irl>GB5cr-0^cMSK{i_U_s-Ev6E< znE&sW3K0C11TRhSAM?o{7-#%n;@=bgf1dYR{MEP27BLe)Aq%i?VbS`&Z$gQ`s`WS zW~WvW<08)+>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7}d5}Wo z9R?-CY^Lfde=4=MB3`(k@(XNRt$Fq_6#i83wKwzIgQ@&3ksXo=;qT|0yx;nw>p4DO z9$`r9o9UXf4wNm6{!&=f4$ONO=>Qgd1-39>ybPw$XBVz0Q`Uvud3gcG4*)Dq zCxcDzehIpLT03gzsK9vjgvsJ}T2OnUbWh|`Yd9n2^kutubf{eUYI4RbCVcMfJ3332 z0qeXk)XAP9V9+;yr{h+wfmvdv^ZHnpaK|@=Ro^YPg#TPjBOL5Zz$xpi=5B0D0Gq5f zsIrWJ%x`NO&lgz&n!#m0`-l{nSQN#I>y!s(2O^&FeHMUBzG#v@p#TDR*WRenSOHWE z8O>3vzW`aww*)L&uMG3n%PK$XnhB?fk^GHAD}dNjy1Cnw5}4X%;};;O1ueC{%}s3< zf><|Oq|XAR!%eiW5ZWsk&3_urIf>@MdIuq0b&!7TNT(%84-VS<7TOQ*fzN3kI*&@E zdjisT6zRx9dM!e_WTE|wxZ3C85*9F778g=H!T>Ml?{-RUb^?)EyN;C-3}A}l7yXvB z#<;P7lWGNnKd>281HJ6uM+xv6)#G^h&{F>=(L2DzZz=uTeH}m)>T?Ix;$xj@x;FFe-J#E>TzA$U8Mf6Yj#Hk?kDwqm)|w=@F8(LXPhSH;hjK;a@N?Mn01gm z7_P_fWw;Qy9>=@9=C4%>IZ5<~d5Y&8@uvFVdK~BOs{7&Ep2LFw38*f8ybKBn>1caK z=?ZKn|4z+PfmOMY8V;akwCmJ7RZs53@!OZU&1|~N+llNfUJzX}b=6+g$01xLCo{uC zCrs&IDe~9t`#ylq(Ec9YVEJ$hGdGwiMDL)x?z{YDa!m-mNY7|wcI Date: Wed, 17 Mar 2021 11:11:08 -0400 Subject: [PATCH 9/9] docs: Update by_iter readme --- runtime/experiments/applications/ekf/by_iteration/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/experiments/applications/ekf/by_iteration/README.md b/runtime/experiments/applications/ekf/by_iteration/README.md index 20079c5..3dd556d 100644 --- a/runtime/experiments/applications/ekf/by_iteration/README.md +++ b/runtime/experiments/applications/ekf/by_iteration/README.md @@ -2,8 +2,10 @@ Executes TinyEKF as shows by [You Chong's GPS example](http://www.mathworks.com/matlabcentral/fileexchange/31487-extended-kalman-filter-ekf--for-gps) +This test executes multiple runs of three iterations (the output of a previous iteration is refed as input), comparing the binary result against a known memoized result stored in `initial_state.dat`, `one_iteration.dat`, `two_iterations.dat`, and `three_iterations.dat`. + +The `rust.sh` script stores per-run results to temporary files suffixed with `*.res.dat` and `diff -s` because I had trouble using cURL to pass a bash string of binary input. + In order to be compatible with the stdin/stdout model of serverless, the input and output files are binary concatenations of various C structs. See `main()` in `runtime/tests/TinyEKF/extras/c/gps_ekf_fn.c` for specifics. - -This test executes multiple iterations, comparing the binary result against a known memoized result stored at `expected_result.dat`.