Skip to content

Commit

Permalink
[wip] try to run from scripts now
Browse files Browse the repository at this point in the history
  • Loading branch information
azimafroozeh committed Nov 17, 2024
1 parent 2ba988a commit f1aabc0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions publication/script/master_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
20 changes: 17 additions & 3 deletions publication/script/run_end_to_end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f1aabc0

Please sign in to comment.