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

Method GetDeviceName

vgpu/gpu.go:328–331  ·  view source on GitHub ↗
(properties *vk.PhysicalDeviceProperties, idx int)

Source from the content-addressed store, hash-verified

326}
327
328func (gp *GPU) GetDeviceName(properties *vk.PhysicalDeviceProperties, idx int) string {
329 nm := CleanString(string(properties.DeviceName[:]))
330 return fmt.Sprintf("%s: id=%d idx=%d", nm, properties.DeviceID, idx)
331}
332
333func (gp *GPU) SelectGPU(gpus []vk.PhysicalDevice, gpuCount int) int {
334 if gpuCount == 1 {

Callers 1

SelectGPUMethod · 0.95

Calls 1

CleanStringFunction · 0.85

Tested by

no test coverage detected