dnnl

package module
v0.0.0-...-d754809 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: NCSA Imports: 14 Imported by: 0

README

DNNL

Profiling

export MKLDNN_VERBOSE=1

https://intel.github.io/mkl-dnn/

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DNNLMARKER string = "mkldnn_verbose"
	OP         string = "exec"
	INFO       string = "info"
)

Verbose mode const A valid sample output line is given as: mkldnn_verbose,exec,reorder,jit:uni,undef,in:f32_oihw out:f32_Ohwi16o,num:1,64x3x11x11,0.0219727

Functions

func UpdateStartTime

func UpdateStartTime()

Types

type Trace

type Trace struct {
	TraceEvents TraceEvents
	// contains filtered or unexported fields
}

func NewProfile

func NewProfile(filepath string) (*Trace, error)

func (Trace) Len

func (t Trace) Len() int

func (Trace) Less

func (t Trace) Less(i, j int) bool

func (*Trace) Publish

func (t *Trace) Publish(start time.Time, ctx context.Context, lvl tracer.Level, opts ...opentracing.StartSpanOption) (time.Time, error)

func (Trace) Swap

func (t Trace) Swap(i, j int)

type TraceEvent

type TraceEvent struct {
	OpName      string // primitive kind
	Timestamp   int64
	ExeTime     time.Duration
	DataFormat  string            // input/output data format
	Propogation string            // propogation
	MetaData    map[string]string // meta data
}

layer 46 Operation name: inner_product Execution time: 3.75903 Data format: fsrc:nc fwei:oi fbia:x fdst:nc Propogation typeforward_inference Metadata: gemm:blas, mb1ic9216oc4096

type TraceEvents

type TraceEvents []*TraceEvent

func ParseVerbose

func ParseVerbose(fName string) TraceEvents

func (TraceEvents) Len

func (t TraceEvents) Len() int

func (TraceEvents) Less

func (t TraceEvents) Less(i, j int) bool

func (TraceEvents) Swap

func (t TraceEvents) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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