Skip to content

Commit

Permalink
run s3 script
Browse files Browse the repository at this point in the history
  • Loading branch information
umadayal committed Oct 11, 2024
1 parent 7a820ea commit 218b5b6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/perf/run_s3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Check if both arguments are provided
if [ $# -ne 2 ]; then
echo "Usage: $0 <s3_path> <cpu|cuda>"
exit 1
fi

s3_path=$1
stage=$2

# Download files from S3
aws s3 cp s3://sp1-testing-suite/$s3_path/program.bin /tmp/program.bin
aws s3 cp s3://sp1-testing-suite/$s3_path/stdin.bin /tmp/stdin.bin

# Set environment variables
export RUSTFLAGS="-Copt-level=3 -Ctarget-cpu=native"
export RUST_BACKTRACE=1
export RUST_LOG=debug

# Run moongate-perf
cargo run --release -p sp1-perf -- --program /tmp/program.bin --stdin /tmp/stdin.bin --mode$stage

0 comments on commit 218b5b6

Please sign in to comment.