babybear ntt bench, added on-device option #1986
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is a demo of how to run all examples in the Icicle repository. | |
# For each language directory (c++, Rust, etc.) the workflow | |
# (1) loops over all examples (msm, ntt, etc.) and | |
# (2) runs ./compile.sh and ./run.sh in each directory. | |
# The script ./compile.sh should compile the example and ./run.sh should run it. | |
# Each script should return 0 for success and 1 otherwise. | |
name: Examples | |
on: | |
pull_request: | |
branches: | |
- main | |
- V2 | |
push: | |
branches: | |
- main | |
- V2 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-changed-files: | |
uses: ./.github/workflows/check-changed-files.yml | |
run-examples: | |
runs-on: [self-hosted, Linux, X64, icicle, examples] | |
needs: check-changed-files | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: c++ examples | |
working-directory: ./examples/c++ | |
if: needs.check-changed-files.outputs.cpp_cuda == 'true' || needs.check-changed-files.outputs.examples == 'true' | |
run: | | |
# loop over all directories in the current directory | |
for dir in $(find . -mindepth 1 -maxdepth 1 -type d); do | |
if [ -d "$dir" ]; then | |
echo "Running command in $dir" | |
cd $dir | |
./compile.sh | |
./run.sh | |
cd - | |
fi | |
done | |
- name: Rust examples | |
working-directory: ./examples/rust | |
if: needs.check-changed-files.outputs.rust == 'true' || needs.check-changed-files.outputs.examples == 'true' | |
run: | | |
# loop over all directories in the current directory | |
for dir in $(find . -mindepth 1 -maxdepth 1 -type d); do | |
if [ -d "$dir" ]; then | |
echo "Running command in $dir" | |
cd $dir | |
cargo run --release | |
cd - | |
fi | |
done |