disable GPU by default
This commit is contained in:
parent
eae0b84b80
commit
e226071c20
@ -31,12 +31,20 @@ var runCmd = &cli.Command{
|
|||||||
Name: "api",
|
Name: "api",
|
||||||
Value: "2345",
|
Value: "2345",
|
||||||
},
|
},
|
||||||
|
&cli.BoolFlag{
|
||||||
|
Name: "enable-gpu-proving",
|
||||||
|
Usage: "Enable use of GPU for mining operations",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
if err := build.GetParams(true); err != nil {
|
if err := build.GetParams(true); err != nil {
|
||||||
return xerrors.Errorf("fetching proof parameters: %w", err)
|
return xerrors.Errorf("fetching proof parameters: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !cctx.Bool("enable-gpu-proving") {
|
||||||
|
os.Setenv("BELLMAN_NO_GPU", "true")
|
||||||
|
}
|
||||||
|
|
||||||
nodeApi, ncloser, err := lcli.GetFullNodeAPI(cctx)
|
nodeApi, ncloser, err := lcli.GetFullNodeAPI(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user