hardware

package
v0.0.0-...-2ccd479 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlatformName

func PlatformName() string

func RendererPath

func RendererPath() string

func TotalMemory

func TotalMemory() uint64

Types

type Computer

type Computer interface {
	GetDeviceName() string
	GetComputeDeviceType() string
	GetComputeDeviceName() string
	GetOptimalTileSize() int
}

type Cpu

type Cpu struct {
	Name         string
	Family       string
	Model        string
	Architecture string
	TotalCores   int
}

func CpuStat

func CpuStat() *Cpu

func (*Cpu) GetComputeDeviceName

func (c *Cpu) GetComputeDeviceName() string

func (*Cpu) GetComputeDeviceType

func (c *Cpu) GetComputeDeviceType() string

func (*Cpu) GetDeviceName

func (c *Cpu) GetDeviceName() string

Computer interface

func (*Cpu) GetOptimalTileSize

func (c *Cpu) GetOptimalTileSize() int

func (*Cpu) IsValid

func (cpu *Cpu) IsValid() bool

type Gpu

type Gpu struct {
	Model       string
	CudaName    string
	TotalMemory uint64
}

func GpuStat

func GpuStat() *Gpu

func (*Gpu) GetComputeDeviceName

func (c *Gpu) GetComputeDeviceName() string

func (*Gpu) GetComputeDeviceType

func (c *Gpu) GetComputeDeviceType() string

func (*Gpu) GetDeviceName

func (c *Gpu) GetDeviceName() string

Computer interface

func (*Gpu) GetOptimalTileSize

func (c *Gpu) GetOptimalTileSize() int

Jump to

Keyboard shortcuts

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