diff --git a/publication/script/master_script.sh b/publication/script/master_script.sh index 619576e..ff30909 100755 --- a/publication/script/master_script.sh +++ b/publication/script/master_script.sh @@ -97,7 +97,7 @@ fi # Build the project green_echo "Building the project..." -cmake --build "$CLONED_DIR/build" -j 6 +cmake --build "$CLONED_DIR/build" -j 16 if [ $? -ne 0 ]; then red_echo "CMake build failed." exit 1 @@ -161,7 +161,7 @@ else red_echo "CMake configuration failed for BENCH_PED." exit 1 fi - cmake --build "$PED_DIR/build" -j 6 + cmake --build "$PED_DIR/build" -j 16 if [ $? -ne 0 ]; then red_echo "Build failed for BENCH_PED." exit 1 diff --git a/publication/script/run_end_to_end.sh b/publication/script/run_end_to_end.sh index c9e5e0c..46cc1a9 100755 --- a/publication/script/run_end_to_end.sh +++ b/publication/script/run_end_to_end.sh @@ -6,16 +6,30 @@ #declare -a threads=("1" "8" "16") declare -a datasets=("food_prices") -declare -a schemes=("alp" ) -declare -a queries=("scan" ) +declare -a schemes=("alp") +declare -a queries=("scan") declare -a threads=("1") +# Ensure CLONED_DIR is set +if [ -z "$CLONED_DIR" ]; then + echo "Error: CLONED_DIR is not set. Please set it before running this script." + exit 1 +fi + +# Iterate through combinations for scheme in "${schemes[@]}"; do for query in "${queries[@]}"; do for thread in "${threads[@]}"; do for dataset in "${datasets[@]}"; do - /home/ubuntu/alp/cmake-build-release-i4i/publication/source_code/bench_end_to_end/run_query "$thread" "$query" "$scheme" "$dataset" + # Execute the command + "$CLONED_DIR/build/publication/source_code/bench_end_to_end/run_query" "$thread" "$query" "$scheme" "$dataset" + # Check for errors + if [ $? -ne 0 ]; then + echo "Error: Command failed for dataset='$dataset', scheme='$scheme', query='$query', thread='$thread'." + exit 1 + fi done done done done +