deviceinfo

package
v0.0.0-...-2bd88fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package deviceinfo provides the devices information for cos-gpu-installer

Index

Constants

This section is empty.

Variables

View Source
var AllGPUTypeStrings = []string{
	"NVIDIA_TESLA_K80",
	"NVIDIA_TESLA_P4",
	"NVIDIA_TESLA_P100",
	"NVIDIA_TESLA_V100",
	"NVIDIA_L4",
	"NVIDIA_H100_80GB",
	"NVIDIA_TESLA_A100",
	"NVIDIA_A100_80GB",
	"NVIDIA_TESLA_T4",
}
View Source
var AvailableGPUTypesList = []GPUType{
	P4,
	P100,
	V100,
	L4,
	T4,
	H100,
	A100_40GB,
	A100_80GB,
}

Functions

This section is empty.

Types

type GPUType

type GPUType int
const (
	K80 GPUType = iota
	P4
	P100
	V100
	L4
	T4
	H100
	A100_40GB
	A100_80GB
	NO_GPU
	Others
)

func GetGPUTypeInfo

func GetGPUTypeInfo() (GPUType, error)

TODO(gshuoy): b/331317222 - add the pci id in the proto file.

func ParseGPUType

func ParseGPUType(gpu string) (GPUType, error)

ParseGPUType converts a string to a GPUType enum.

func (GPUType) OpenSupported

func (g GPUType) OpenSupported() bool

TODO(gshuoy): b/331317222 - Add the open source supported in the proto file.

func (GPUType) String

func (g GPUType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL