added GPU compatability

This commit is contained in:
2021-04-10 00:46:17 +04:00
parent bc1859484a
commit 2ec90cfaf5
11 changed files with 90 additions and 54 deletions

View File

@@ -4,12 +4,14 @@ import (
"github.com/urfave/cli/v2"
)
// Variables declared for CLI
var (
IpAddress string
Ports string
Mode string
GPU bool
ListServers bool
)
var ListServers bool
var AppConfigFlags = []cli.Flag{
// Deprecated to be implemented using GRPC
@@ -38,4 +40,10 @@ var AppConfigFlags = []cli.Flag{
EnvVars: []string{"NUM_PORTS"},
Destination: &Ports,
},
&cli.BoolFlag{
Name: "GPU",
Usage: "Create Docker Containers to access GPU",
EnvVars: []string{"USE_GPU"},
Destination: &GPU,
},
}