forked from succinctlabs/sp1
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
…v-0914
- Loading branch information
Showing
34 changed files
with
593 additions
and
183 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
images: | ||
nvidia-linux: | ||
platform: "linux" | ||
arch: "x64" | ||
ami: "ami-0a63dc9cb9e934ba3" | ||
owner: "421253708207" | ||
|
||
dlami-x64: | ||
platform: "linux" | ||
arch: "x64" | ||
owner: "898082745236" # AWS | ||
name: "Deep Learning Base OSS Nvidia Driver GPU AMI (Ubuntu 22.04)*" | ||
|
||
runners: | ||
gpu-nvidia: | ||
family: ["g6.4xlarge"] | ||
image: dlami-x64 |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
name: Testing Suite | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- "**" | ||
paths: | ||
- "crates/**" | ||
- "examples/**" | ||
- "Cargo.toml" | ||
- ".github/workflows/**" | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-x86: | ||
name: ${{ matrix.workload.s3_folder }} (${{ matrix.workload.mode }}) | ||
runs-on: ${{ matrix.workload.mode == 'cuda' && fromJSON('["runs-on", "family=g6.16xlarge", "ami=ami-0a63dc9cb9e934ba3", "spot=false", "run-id=${{ github.run_id }}"]') || fromJSON('["runs-on", "runner=64cpu-linux-x64", "spot=false", "run-id=${{ github.run_id }}"]') }} | ||
if: ${{ contains(github.event.head_commit.message, '(run-suite)') }} | ||
strategy: | ||
matrix: | ||
workload: | ||
# Fibonacci 17k | ||
# - { s3_folder: fibonacci-17k, mode: cpu } | ||
- { s3_folder: fibonacci-17k, mode: cuda } | ||
# - { s3_folder: fibonacci-17k, mode: network } | ||
# SSZ Withdrawals | ||
# - { s3_folder: ssz-withdrawals, mode: cpu } | ||
- { s3_folder: ssz-withdrawals, mode: cuda } | ||
# - { s3_folder: ssz-withdrawals, mode: network } | ||
# Tendermint | ||
# - { s3_folder: tendermint, mode: cpu } | ||
- { s3_folder: tendermint, mode: cuda } | ||
# - { s3_folder: tendermint, mode: network } | ||
# RSP 20526624 | ||
# - { s3_folder: rsp-20526624, mode: cpu } | ||
- { s3_folder: rsp-20526624, mode: cuda } | ||
# - { s3_folder: rsp-20526624, mode: network } | ||
# RSA | ||
# - { s3_folder: rsa, mode: cpu } | ||
- { s3_folder: rsa, mode: cuda } | ||
# - { s3_folder: rsa, mode: network } | ||
# Regex | ||
# - { s3_folder: regex, mode: cpu } | ||
- { s3_folder: regex, mode: cuda } | ||
# - { s3_folder: regex, mode: network } | ||
# Chess | ||
# - { s3_folder: chess, mode: cpu } | ||
- { s3_folder: chess, mode: cuda } | ||
# - { s3_folder: chess, mode: network } | ||
# Tendermint | ||
# - { s3_folder: tendermint, mode: cpu } | ||
- { s3_folder: tendermint, mode: cuda } | ||
# - { s3_folder: tendermint, mode: network } | ||
# RSP 20526624 | ||
# - { s3_folder: rsp-20526624, mode: cpu } | ||
- { s3_folder: rsp-20526624, mode: cuda } | ||
# - { s3_folder: rsp-20526624, mode: network } | ||
# RSA | ||
# - { s3_folder: rsa, mode: cpu } | ||
- { s3_folder: rsa, mode: cuda } | ||
# - { s3_folder: rsa, mode: network } | ||
# Regex | ||
# - { s3_folder: regex, mode: cpu } | ||
- { s3_folder: regex, mode: cuda } | ||
# - { s3_folder: regex, mode: network } | ||
# JSON | ||
# - { s3_folder: json, mode: cpu } | ||
- { s3_folder: json, mode: cuda } | ||
# - { s3_folder: json, mode: network } | ||
# Chess | ||
# - { s3_folder: chess, mode: cpu } | ||
- { s3_folder: chess, mode: cuda } | ||
# - { s3_folder: chess, mode: network } | ||
# Blobstream 01j6z63fgafrc8jeh0k12gbtvw | ||
# - { s3_folder: blobstream-01j6z63fgafrc8jeh0k12gbtvw, mode: cpu } | ||
- { s3_folder: blobstream-01j6z63fgafrc8jeh0k12gbtvw, mode: cuda } | ||
# # - { s3_folder: blobstream-01j6z63fgafrc8jeh0k12gbtvw, mode: network } | ||
# Blobstream 01j6z95bdme9svevmfyc974bja | ||
# - { s3_folder: blobstream-01j6z95bdme9svevmfyc974bja, mode: cpu } | ||
- { s3_folder: blobstream-01j6z95bdme9svevmfyc974bja, mode: cuda } | ||
# # - { s3_folder: blobstream-01j6z95bdme9svevmfyc974bja, mode: network } | ||
# Blobstream 01j6z9ak0ke9srsppgywgke6fj | ||
# - { s3_folder: blobstream-01j6z9ak0ke9srsppgywgke6fj, mode: cpu } | ||
- { s3_folder: blobstream-01j6z9ak0ke9srsppgywgke6fj, mode: cuda } | ||
# - { s3_folder: blobstream-01j6z9ak0ke9srsppgywgke6fj, mode: network } | ||
# Vector 01j6xsv35re96tkgyda115320t | ||
# - { s3_folder: vector-01j6xsv35re96tkgyda115320t, mode: cpu } | ||
- { s3_folder: vector-01j6xsv35re96tkgyda115320t, mode: cuda } | ||
# - { s3_folder: vector-01j6xsv35re96tkgyda115320t, mode: network } | ||
# Vector 01j6xzy366ff5tbkzcrs8pma02 | ||
# - { s3_folder: vector-01j6xzy366ff5tbkzcrs8pma02, mode: cpu } | ||
- { s3_folder: vector-01j6xzy366ff5tbkzcrs8pma02, mode: cuda } | ||
# - { s3_folder: vector-01j6xzy366ff5tbkzcrs8pma02, mode: network } | ||
# Vector 01j6y06de0fdaafemr8b1t69z3 | ||
# - { s3_folder: vector-01j6y06de0fdaafemr8b1t69z3, mode: cpu } | ||
- { s3_folder: vector-01j6y06de0fdaafemr8b1t69z3, mode: cuda } | ||
# - { s3_folder: vector-01j6y06de0fdaafemr8b1t69z3, mode: network } | ||
# Raiko A7 10 | ||
# - { s3_folder: raiko-a7-10, mode: cpu } | ||
- { s3_folder: raiko-a7-10, mode: cuda } | ||
# - { s3_folder: raiko-a7-10, mode: network } | ||
# OP Succinct | ||
# - { s3_folder: op-succinct-op-sepolia-range-17685896-17685897, mode: network } | ||
# - { s3_folder: op-succinct-op-sepolia-range-17985900-17985905, mode: network } | ||
# - { s3_folder: op-succinct-op-sepolia-range-18129400-18129401, mode: network } | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Setup CI | ||
uses: ./.github/actions/setup | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_S3 }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_S3 }} | ||
aws-region: us-west-2 | ||
- name: Copy files from S3 | ||
run: | | ||
mkdir -p workdir | ||
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload.s3_folder }}/program.bin workdir/program.bin | ||
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload.s3_folder }}/stdin.bin workdir/stdin.bin | ||
- name: Run sp1-perf | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: run | ||
toolchain: 1.81.0 | ||
args: --release -p sp1-perf -- --program workdir/program.bin --stdin workdir/stdin.bin --mode ${{ matrix.workload.mode }} | ||
env: | ||
RUST_LOG: debug | ||
RUSTFLAGS: -Copt-level=3 -Ctarget-cpu=native | ||
RUST_BACKTRACE: 1 | ||
SP1_PROVER: ${{ matrix.workload.mode == 'cpu' && 'local' || matrix.workload.mode == 'cuda' && 'cuda' || matrix.workload.mode == 'network' && 'network' }} | ||
SP1_PRIVATE_KEY: ${{ secrets.SP1_PRIVATE_KEY }} | ||
PROVER_NETWORK_RPC: https://43xadiwbrdkiquizwybgpzdhcu0pgvux.lambda-url.us-east-2.on.aws/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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 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 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 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 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 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 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 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
Oops, something went wrong.