File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1+ .PHONY : build update clean
2+
3+ ZKVM_COMMIT ?= freebuild
4+ PLONKY3_GPU_VERSION =$(shell ./print_plonky3gpu_version.sh | sed -n '2p')
5+ $(info PLONKY3_GPU_VERSION is ${PLONKY3_GPU_VERSION})
6+
7+ GIT_REV ?= $(shell git rev-parse --short HEAD)
8+ GO_TAG ?= $(shell grep "var tag = " ../../common/version/version.go | cut -d "\"" -f2)
9+ ZK_VERSION =${ZKVM_COMMIT}-${PLONKY3_GPU_VERSION}
10+ $(info ZK_GPU_VERSION is ${ZK_VERSION})
11+
12+ clean :
13+ cargo clean -Z unstable-options --release -p prover --lockfile-path ./Cargo.lock
14+
15+ # build gpu prover, never touch lock file
16+ build :
17+ GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION=${ZK_VERSION} cargo build -Z unstable-options --release -p prover --locked --lockfile-path ./Cargo.lock
18+
19+ # update Cargo.lock while override config has been updated
20+ update :
21+ GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION=${ZK_VERSION} cargo build -Z unstable-options --release -p prover --lockfile-path ./Cargo.lock
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- config_file=../crates/gpu_override/. cargo/config.toml
3+ config_file=.cargo/config.toml
44plonky3_gpu_path=$( grep ' path.*plonky3-gpu' " $config_file " | cut -d' "' -f2 | head -n 1)
55plonky3_gpu_path=$( dirname " $plonky3_gpu_path " )
66
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ ZKVM_COMMIT=$(shell echo ${ZKVM_VERSION} | cut -d " " -f2)
2222$(info ZKVM_COMMIT is ${ZKVM_COMMIT})
2323
2424$(info PLONKY3_VERSION is ${PLONKY3_VERSION})
25- PLONKY3_GPU_VERSION =$(shell ./print_plonky3gpu_version.sh | sed -n '2p')
26- $(info PLONKY3_GPU_VERSION is ${PLONKY3_GPU_VERSION})
2725
2826GIT_REV =$(shell git rev-parse --short HEAD)
2927GO_TAG =$(shell grep "var tag = " ../common/version/version.go | cut -d "\"" -f2)
3533endif
3634
3735ZK_VERSION =${ZKVM_COMMIT}-${PLONKY3_VERSION}
38- ZK_GPU_VERSION =${ZKVM_COMMIT}-${PLONKY3_GPU_VERSION}
3936
4037E2E_HANDLE_SET = ../tests/prover-e2e/testset.json
4138DUMP_DIR = .work
4239
4340prover :
44- cd ../crates/gpu_override && GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION =${ZK_VERSION} cargo build -Z unstable-options --release -p prover --locked --lockfile-path ./Cargo.lock
41+ GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZKVM_COMMIT =${ZKVM_COMMIT} $( MAKE ) -C ../crates/gpu_override build
4542
4643prover_cpu :
47- GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION=${ZK_GPU_VERSION } cargo build --locked --release -p prover
44+ GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION=${ZK_VERSION } cargo build --locked --release -p prover
4845
4946
5047tests_binary :
You can’t perform that action at this time.
0 commit comments