hwloc

package
v0.0.0-...-adad84f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: BSD-2-Clause-Patent Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheContext

func CacheContext(parent context.Context, log logging.Logger) (context.Context, error)

CacheContext adds a cache of the hwloc topology to the provided context.

func Cleanup

func Cleanup(ctx context.Context)

Cleanup frees the hwloc cache in the context, if any.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider provides access to hwloc topology functionality.

func NewProvider

func NewProvider(log logging.Logger) *Provider

NewProvider returns a new hwloc Provider.

func (*Provider) GetNUMANodeIDForPID

func (p *Provider) GetNUMANodeIDForPID(ctx context.Context, pid int32) (uint, error)

GetNUMANodeIDForPID fetches the NUMA node ID associated with a given process ID.

func (*Provider) GetTopology

func (p *Provider) GetTopology(ctx context.Context) (*hardware.Topology, error)

GetTopology fetches a simplified hardware topology via hwloc.

Jump to

Keyboard shortcuts

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