cmd

package
v0.0.0-...-59f4df4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UINT16_MAX_VAL_UINT16 uint16 = 0xffff
	UINT16_MAX_VAL_UINT32 uint32 = 0xffff
	UINT16_MAX_VAL_UINT64 uint64 = 0xffff
	UINT32_MAX_VAL_UINT32 uint32 = 0xffffffff
	UINT32_MAX_VAL_UINT64 uint64 = 0xffffffff
	UINT64_MAX_VAL        uint64 = 0xffffffffffffffff
)
View Source
const (
	TOPO_PRINT_LINK_TYPE   uint32 = 0
	TOPO_PRINT_LINK_WEIGHT uint32 = 1
	TOPO_PRINT_NUM_HOPS    uint32 = 2
)

Variables

View Source
var DebugCreateCmd = &cobra.Command{
	Use:   "create",
	Short: "debug create commands",
	Long:  "debug create commands",
}
View Source
var DebugDeleteCmd = &cobra.Command{
	Use:   "delete",
	Short: "debug delete commands",
	Long:  "debug delete commands",
}
View Source
var DebugUpdateCmd = &cobra.Command{
	Use:   "update",
	Short: "debug update commands",
	Long:  "debug update commands",
}
View Source
var (
	PerformanceLevelVal aga.GPUPerformanceLevel
)
View Source
var RootCmd = &cobra.Command{
	Use:   "gpuctl",
	Short: "GPU CLI",
	Long:  "\n----------------------\n AMD GPU CLI \n----------------------\n",
}

RootCmd represents the base command when called without any subcommands

View Source
var ShowCmd = &cobra.Command{
	Use:   "show",
	Short: "show commands",
	Long:  "show commands",
}

ShowCmd represents the show command

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

func NewGpuctlCommand

func NewGpuctlCommand() *cobra.Command

NewGpuctlCommand exports the RootCmd for bash-completion

func RegisterDebugNodes

func RegisterDebugNodes(cmd *cobra.Command)

func RegisterShowNodes

func RegisterShowNodes(pcmd *cobra.Command)

func TraceLevelShowCmdHandler

func TraceLevelShowCmdHandler(cmd *cobra.Command, args []string) error

Types

type GPUWatchSpec

type GPUWatchSpec struct {
	Id        string
	GPU       []string
	Attribute []aga.GPUWatchAttrId
}

type ShadowGPU

type ShadowGPU struct {
	Id string
	*aga.GPUSpec
	*aga.GPUStatus
	*aga.GPUStats
}

func NewGPU

func NewGPU(resp *aga.GPU) *ShadowGPU

type ShadowGPUComputePartition

type ShadowGPUComputePartition struct {
	Id                   string
	ComputePartitionType aga.GPUComputePartitionType
	GPUPartitions        []string
}

Jump to

Keyboard shortcuts

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