Skip to content

Commit

Permalink
add bench env print
Browse files Browse the repository at this point in the history
  • Loading branch information
deaswang committed Dec 18, 2020
1 parent 19d457a commit 0207975
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/lotus-bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,18 @@ var sealBenchCmd = &cli.Command{
bo.VerifyWindowPostHot = verifyWindowpost2.Sub(verifyWindowpost1)
}

fmt.Println("environment variable list:")
for _, envKey := range []string{"BELLMAN_NO_GPU", "FIL_PROOFS_MAXIMIZE_CACHING", "FIL_PROOFS_USE_GPU_COLUMN_BUILDER",
"FIL_PROOFS_USE_GPU_TREE_BUILDER", "FIL_PROOFS_USE_MULTICORE_SDR", "FIL_PROOFS_MULTICORE_SDR_NO_BIND_CORE",
"BELLMAN_CUSTOM_GPU"} {
envValue, found := os.LookupEnv(envKey)
if found {
fmt.Printf("%s=%s\n", envKey, envValue)
} else {
fmt.Printf("%s not set\n", envKey)
}
}

if c.Bool("json-out") {
data, err := json.MarshalIndent(bo, "", " ")
if err != nil {
Expand Down

0 comments on commit 0207975

Please sign in to comment.