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 1
1
#! /bin/bash
2
2
3
- config_file=../crates/gpu_override/. cargo/config.toml
3
+ config_file=.cargo/config.toml
4
4
plonky3_gpu_path=$( grep ' path.*plonky3-gpu' " $config_file " | cut -d' "' -f2 | head -n 1)
5
5
plonky3_gpu_path=$( dirname " $plonky3_gpu_path " )
6
6
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ ZKVM_COMMIT=$(shell echo ${ZKVM_VERSION} | cut -d " " -f2)
22
22
$(info ZKVM_COMMIT is ${ZKVM_COMMIT})
23
23
24
24
$(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})
27
25
28
26
GIT_REV =$(shell git rev-parse --short HEAD)
29
27
GO_TAG =$(shell grep "var tag = " ../common/version/version.go | cut -d "\"" -f2)
35
33
endif
36
34
37
35
ZK_VERSION =${ZKVM_COMMIT}-${PLONKY3_VERSION}
38
- ZK_GPU_VERSION =${ZKVM_COMMIT}-${PLONKY3_GPU_VERSION}
39
36
40
37
E2E_HANDLE_SET = ../tests/prover-e2e/testset.json
41
38
DUMP_DIR = .work
42
39
43
40
prover :
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
45
42
46
43
prover_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
48
45
49
46
50
47
tests_binary :
You can’t perform that action at this time.
0 commit comments