Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 288b422

Browse files
committed
change default gpus
1 parent 9fc7f8a commit 288b422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cmd/envs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
defaultCPUCores float32 = 1
2020
defaultMemGB float32 = 1
2121
defaultDiskGB = 10
22-
defaultGPUs = 1
22+
defaultGPUs = 0
2323
)
2424

2525
func envsCommand() *cobra.Command {
@@ -199,7 +199,7 @@ coder envs create \
199199
cmd.Flags().Float32P("cores", "c", defaultCPUCores, "The number of cpu cores the environment should be provisioned with.")
200200
cmd.Flags().Float32P("memory", "m", defaultMemGB, "GB of RAM an environment should be provisioned with.")
201201
cmd.Flags().IntP("disk", "d", defaultDiskGB, "GB of disk storage an environment should be provisioned with.")
202-
cmd.Flags().IntP("gpu", "g", defaultGPUs, "The number GPUs an environment should be provisioned with.")
202+
cmd.Flags().IntP("gpus", "g", defaultGPUs, "The number GPUs an environment should be provisioned with.")
203203
cmd.Flags().StringSliceP("services", "s", services, "The services that the environment should be initialized with.")
204204
cmd.Flags().StringVarP(&img, "image", "i", "", "ID of the image to base the environment off of.")
205205
cmd.MarkFlagRequired("image")

0 commit comments

Comments
 (0)