deviceinfo

package
v0.0.0-...-4aaa17f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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)

func ParseGPUType

func ParseGPUType(gpu string) (GPUType, error)

ParseGPUType converts a string to a GPUType enum.

func (GPUType) OpenSupported

func (g GPUType) OpenSupported() bool

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