diff options
Diffstat (limited to 'playground')
| -rwxr-xr-x | playground/calculate.sh | 2 | ||||
| -rw-r--r-- | playground/gdb-calculate.gdb | 5 | ||||
| -rwxr-xr-x | playground/gdb-calculate.sh | 20 | ||||
| -rw-r--r-- | playground/params.json | 31 |
4 files changed, 57 insertions, 1 deletions
diff --git a/playground/calculate.sh b/playground/calculate.sh index 9368a6d..9aa6a49 100755 --- a/playground/calculate.sh +++ b/playground/calculate.sh @@ -3,6 +3,6 @@ . $(dirname -- "$0")/env.sh exec $PYTHON -m opcut calculate \ - --method forward_greedy \ + --method forward_greedy_native \ --output $RUN_PATH/result.json \ $RUN_PATH/params.json diff --git a/playground/gdb-calculate.gdb b/playground/gdb-calculate.gdb new file mode 100644 index 0000000..952559f --- /dev/null +++ b/playground/gdb-calculate.gdb @@ -0,0 +1,5 @@ +set breakpoint pending on + +# break src_c/opcut.c:opcut_calculate + +run diff --git a/playground/gdb-calculate.sh b/playground/gdb-calculate.sh new file mode 100755 index 0000000..f2bf64b --- /dev/null +++ b/playground/gdb-calculate.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +. $(dirname -- "$0")/env.sh + +PYTHON_BIN="$($PYTHON -c "import sys; print(sys.executable)")" + + +cd $ROOT_PATH +doit clean_all +doit json_schema_repo c + +cd $RUN_PATH +exec gdb --directory $ROOT_PATH \ + --command $RUN_PATH/gdb-calculate.gdb \ + --args $PYTHON_BIN -m opcut calculate \ + --method forward_greedy_native \ + --output $RUN_PATH/result.json \ + $RUN_PATH/params.json diff --git a/playground/params.json b/playground/params.json index 789505c..5aff8ca 100644 --- a/playground/params.json +++ b/playground/params.json @@ -1,5 +1,6 @@ { "cut_width": 1, + "min_initial_usage": true, "panels": { "p1": { "width": 50, @@ -8,9 +9,39 @@ }, "items": { "i1": { + "width": 1, + "height": 5, + "can_rotate": true + }, + "i1_1": { + "width": 1, + "height": 5, + "can_rotate": true + }, + "i1_2": { + "width": 1, + "height": 5, + "can_rotate": true + }, + "i1_3": { + "width": 1, + "height": 5, + "can_rotate": true + }, + "i1_4": { + "width": 1, + "height": 5, + "can_rotate": true + }, + "i2": { "width": 5, "height": 5, "can_rotate": true + }, + "i3": { + "width": 10, + "height": 10, + "can_rotate": true } } } |
