runner

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 19 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
	InstCountTracers        []instCountTracer
	CacheLatencyTracers     []cacheLatencyTracer
	CacheHitRateTracers     []cacheHitRateTracer
	RDMATransactionCounters []rdmaTransactionCountTracer
	DRAMTracers             []dramTransactionCountTracer
	Benchmarks              []benchmarks.Benchmark

	Timing                     bool
	Verify                     bool
	Parallel                   bool
	ReportInstCount            bool
	ReportCacheLatency         bool
	ReportCacheHitRate         bool
	ReportRDMATransactionCount bool
	ReportDRAMTransactionCount bool
	UseUnifiedMemory           bool

	GPUIDs []int
	// contains filtered or unexported fields
}

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