instance

package
v0.205.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstanceTypes = []InstanceInfo{}/* 742 elements not displayed */
View Source
var InstanceTypesMap = map[string]InstanceInfo{}

Functions

func GetSmallestInstanceType added in v0.112.0

func GetSmallestInstanceType(instanceTypes []ec2types.InstanceTypeInfo) string

GetSmallestInstanceType returns the smallest instance type in instanceTypes. Instance types that have a smaller vCPU are considered smaller. instanceTypes must be non-empty or it will panic.

func IsARMGPUInstanceType added in v0.96.0

func IsARMGPUInstanceType(instanceType string) bool

IsARMGPUInstanceType returns true if the instance type is ARM-GPU architecture

func IsARMInstanceType

func IsARMInstanceType(instanceType string) bool

IsARMInstanceType returns true if the instance type is ARM architecture

func IsGPUInstanceType

func IsGPUInstanceType(instanceType string) bool

IsGPUInstanceType returns true if the instance type is GPU optimised

func IsInferentiaInstanceType

func IsInferentiaInstanceType(instanceType string) bool

IsInferentiaInstanceType returns true if the instance type requires AWS Neuron Inferentia/Inferentia2

func IsNeuronInstanceType added in v0.121.0

func IsNeuronInstanceType(instanceType string) bool

IsNeuronInstanceType returns true if the instance type requires AWS Neuron

func IsNvidiaInstanceType added in v0.86.0

func IsNvidiaInstanceType(instanceType string) bool

IsNvidiaInstanceType returns true if the instance type has NVIDIA accelerated hardware

func IsTrainiumInstanceType added in v0.121.0

func IsTrainiumInstanceType(instanceType string) bool

IsTrainiumnstanceType returns true if the instance type requires AWS Neuron Trainium/Trainium2

Types

type InstanceInfo added in v0.204.0

type InstanceInfo struct {
	InstanceType             string
	InstanceStorageSupported bool
	EFASupported             bool
	NvidiaGPUSupported       bool
	NvidiaGPUType            string
	NeuronSupported          bool
	NeuronDeviceType         string
	CBRSupported             bool
	CPUArch                  string
}

Jump to

Keyboard shortcuts

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