devicev1

package
v0.0.0-...-3511abf Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_CPU",
		2: "TYPE_CUDA",
		3: "TYPE_ROCM",
	}
	Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_CPU":         1,
		"TYPE_CUDA":        2,
		"TYPE_ROCM":        3,
	}
)

Enum value maps for Type.

View Source
var File_determined_device_v1_device_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Device

type Device struct {

	// The index of the device.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The brand name of the device.
	Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"`
	// The unique UUID of the device.
	Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// The type of the Device.
	Type Type `protobuf:"varint,4,opt,name=type,proto3,enum=determined.device.v1.Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Device represents a single computational device on an agent.

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetBrand

func (x *Device) GetBrand() string

func (*Device) GetId

func (x *Device) GetId() int32

func (*Device) GetType

func (x *Device) GetType() Type

func (*Device) GetUuid

func (x *Device) GetUuid() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type Type

type Type int32

The type of the Device.

const (
	// An unspecified device type.
	Type_TYPE_UNSPECIFIED Type = 0
	// A CPU device.
	Type_TYPE_CPU Type = 1
	// CUDA device.
	Type_TYPE_CUDA Type = 2
	// ROCM.
	Type_TYPE_ROCM Type = 3
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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