Skip to content

Commit

Permalink
Move policy change to seal bench
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Jakub Sztandera committed Sep 25, 2020
1 parent 6db6a90 commit 4eec4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/lotus-bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ func main() {

log.Info("Starting lotus-bench")

policy.AddSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)

app := &cli.App{
Name: "lotus-bench",
Usage: "Benchmark performance of lotus on your hardware",
Expand Down Expand Up @@ -147,6 +145,8 @@ var sealBenchCmd = &cli.Command{
},
},
Action: func(c *cli.Context) error {
policy.AddSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)

if c.Bool("no-gpu") {
err := os.Setenv("BELLMAN_NO_GPU", "1")
if err != nil {
Expand Down

0 comments on commit 4eec4a0

Please sign in to comment.