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 ¶
NewGpuctlCommand exports the RootCmd for bash-completion
func RegisterDebugNodes ¶
func RegisterShowNodes ¶
Types ¶
type GPUWatchSpec ¶
type GPUWatchSpec struct { Id string GPU []string Attribute []aga.GPUWatchAttrId }
type ShadowGPUComputePartition ¶
type ShadowGPUComputePartition struct { Id string ComputePartitionType aga.GPUComputePartitionType GPUPartitions []string }
func NewGPUComputePartition ¶
func NewGPUComputePartition(resp *aga.GPUComputePartition) *ShadowGPUComputePartition
Click to show internal directories.
Click to hide internal directories.