cpu

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: BSD-3-Clause Imports: 0 Imported by: 10

README

cpu

internal/cpu(in Go standard lib) with AVX512 & Cache Size detection.

Acknowledgement

klauspost/cpuid

Documentation

Overview

Package cpu implements processor feature detection used by the Go standard library.

Index

Constants

View Source
const (
	Other = iota
	Intel
	AMD
	VIA
	Transmeta
	NSC
	KVM  // Kernel-based Virtual Machine
	MSVM // Microsoft Hyper-V or Windows Virtual PC
	VMware
	XenHVM
	Bhyve
	Hygon
)
View Source
const CacheLineSize = 64
View Source
const GOARCH = "amd64"

Variables

View Source
var ARM64 arm64
View Source
var PPC64 ppc64
View Source
var S390X s390x
View Source
var X86 x86

Functions

This section is empty.

Types

type Cache

type Cache struct {
	L1I int
	L1D int
	L2  int
	L3  int
}

CPU Cache Size. -1 if undetected.

Jump to

Keyboard shortcuts

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