gce

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// https://cloud.google.com/compute/docs/accelerator-optimized-machines#network-protocol
	// machine types have a one to one mapping to a network protocol in google cloud
	NetworkProtocolMap = map[string]GPUDirectSupport{
		"a3-highgpu-1g":  GPUDirectTCPX,
		"a3-highgpu-2g":  GPUDirectTCPX,
		"a3-highgpu-4g":  GPUDirectTCPX,
		"a3-highgpu-8g":  GPUDirectTCPX,
		"a3-edgegpu-8g":  GPUDirectTCPX,
		"a3-megagpu-8g":  GPUDirectTCPXO,
		"a3-ultragpu-8g": GPUDirectRDMA,
		"a4-highgpu-8g":  GPUDirectRDMA,
	}
)

Functions

func GetGCEAttributes added in v0.5.0

func GetGCEAttributes(network, topology string) map[resourceapi.QualifiedName]resourceapi.DeviceAttribute

GetGCEAttributes fetches all attributes related to the provided GCP network.

func GetInstance

func GetInstance(ctx context.Context) (*cloudprovider.CloudInstance, error)

GetInstance retrieves GCE instance properties by querying the metadata server.

Types

type GPUDirectSupport

type GPUDirectSupport string

GPUDirectSupport represents the type of GPUDirect support for a given machine type.

const (
	GPUDirectTCPX  GPUDirectSupport = "GPUDirect-TCPX"
	GPUDirectTCPXO GPUDirectSupport = "GPUDirect-TCPXO"
	GPUDirectRDMA  GPUDirectSupport = "GPUDirect-RDMA"
)

Jump to

Keyboard shortcuts

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