MCPcopy Create free account
hub / github.com/cogentcore/core / NewComputeGPU

Function NewComputeGPU

vgpu/gpu.go:143–147  ·  view source on GitHub ↗

NewComputeGPU returns a new GPU struct with Compute Defaults set configure any additional defaults before calling Config. Use NewGPU for a graphics enabled GPU.

()

Source from the content-addressed store, hash-verified

141// configure any additional defaults before calling Config.
142// Use NewGPU for a graphics enabled GPU.
143func NewComputeGPU() *GPU {
144 gp := &GPU{}
145 gp.Defaults(false)
146 return gp
147}
148
149// FindString returns index of string if in list, else -1
150func FindString(str string, strs []string) int {

Callers 5

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls 1

DefaultsMethod · 0.95

Tested by

no test coverage detected