MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / resolveGPU

Function resolveGPU

tui/create.go:166–174  ·  view source on GitHub ↗

resolveGPU normalizes a user-provided GPU string.

(raw string)

Source from the content-addressed store, hash-verified

164
165// resolveGPU normalizes a user-provided GPU string.
166func resolveGPU(raw string) (string, bool) {
167 raw = strings.ToLower(raw)
168 gpuMap := map[string]string{"a6000": "a6000", "a100": "a100xl", "h100": "h100"}
169 canonical, ok := gpuMap[raw]
170 if !ok {
171 return "", false
172 }
173 return canonical, true
174}
175
176// trySkipCurrentStep is the core hybrid-mode method. It loops forward through
177// steps, auto-filling each one from presets if the preset value is valid given

Callers 1

trySkipCurrentStepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected