Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/benchmark-self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
config_path:
description: "Path to Configuration File"
required: true
default: "secpar_0_height_2.params.toml"
default: "secpar_20_height_1_p_6.params.toml"

data_id:
description: "Data ID (e.g. 53)"
Expand Down Expand Up @@ -54,15 +54,15 @@ jobs:
uses: actions/checkout@v4
with:
repository: MachinaIO/openfhe-development
ref: feat/improve_determinant
ref: main
path: openfhe

- name: Build & install OpenFHE
if: steps.openfhe-check.outputs.installed == 'false'
run: |
cd openfhe
mkdir -p build && cd build
cmake ..
cmake .. -DWITH_OPENMP=OFF
make -j"$(nproc)"
sudo make install
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/openfhe.conf
Expand All @@ -81,19 +81,20 @@ jobs:
env:
LD_LIBRARY_PATH: /usr/local/lib
RUST_LOG: info
RUST_BACKTRACE: 1
run: |
mkdir -p logs

# Run abe for offline computation with hardcoded config path as requested
(
abe bench-run-offline \
LOGFILE=logs/data_${{ github.event.inputs.data_id }}.log

{
abe bench-run-offline \
--config abe/run_configs/${{ github.event.inputs.config_path }} \
--data-dir data_${{ github.event.inputs.data_id }} &&
abe bench-run-online \
--config abe/run_configs/${{ github.event.inputs.config_path }} \
--data-dir data_${{ github.event.inputs.data_id }} \
2>&1 | tee logs/data_${{ github.event.inputs.data_id }}.log
) &
pid=$!
echo "Benchmark PID: $pid"
wait $pid
--data-dir data_${{ github.event.inputs.data_id }}
} 2>&1 | tee -a "$LOGFILE"

- name: Install uv
uses: astral-sh/setup-uv@v5
Expand Down
Loading