topology

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalizeCPUList

func CanonicalizeCPUList(s string) (string, []int, error)

func ContainsCPU

func ContainsCPU(cpus []int, cpu int) bool

func FormatCPUList

func FormatCPUList(cpus []int) string

func ParseCPUList

func ParseCPUList(s string) ([]int, error)

func SelectOSAndGame

func SelectOSAndGame(lists []string) (osCPUs string, gameCPUs string, canonicalLists []string, err error)

SelectOSAndGame picks OS CPUs as the list containing CPU0 and GAME CPUs as the union of all other lists.

Types

type Result

type Result struct {
	OSCPUs   string
	GameCPUs string
	Lists    []string
}

func Detect

func Detect() (Result, error)

Jump to

Keyboard shortcuts

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