runner

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package runner defines how default benchmark samples are executed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Engine                  akita.Engine
	GPUDriver               *driver.Driver
	KernelTimeCounter       *tracing.BusyTimeTracer
	PerGPUKernelTimeCounter []*tracing.BusyTimeTracer
	CacheLatencyTracers     []cacheLatencyTracer
	Benchmarks              []benchmarks.Benchmark
	Timing                  bool
	Verify                  bool
	Parallel                bool
	ReportCacheLatency      bool
	UseUnifiedMemory        bool

	GPUIDs []int
}

Runner is a class that helps running the benchmarks in the official samples.

func (*Runner) AddBenchmark

func (r *Runner) AddBenchmark(b benchmarks.Benchmark)

AddBenchmark adds an benchmark that the driver runs

func (*Runner) AddBenchmarkWithoutSettingGPUsToUse

func (r *Runner) AddBenchmarkWithoutSettingGPUsToUse(b benchmarks.Benchmark)

AddBenchmarkWithoutSettingGPUsToUse allows for user specified GPUs for the benchmark to run.

func (*Runner) Init

func (r *Runner) Init() *Runner

Init initializes the platform simulate

func (*Runner) ParseFlag

func (r *Runner) ParseFlag() *Runner

ParseFlag applies the runner flag to runner object

func (*Runner) Run

func (r *Runner) Run()

Run runs the benchmark on the simulator

Jump to

Keyboard shortcuts

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