bfs

package
v3.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package bfs implements the bfs benchmark from the SHOC suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	Path     string
	NumNode  int
	Degree   int
	MaxDepth int
	// contains filtered or unexported fields
}

Benchmark is the BFS benchmark

func NewBenchmark

func NewBenchmark(driver *driver.Driver) *Benchmark

NewBenchmark creates a new BFS benchmark

func (*Benchmark) Run

func (b *Benchmark) Run()

Run runs the benchmark

func (*Benchmark) SelectGPU

func (b *Benchmark) SelectGPU(gpus []int)

SelectGPU configures which GPU the benchmark can use

func (*Benchmark) SetUnifiedMemory

func (b *Benchmark) SetUnifiedMemory()

SetUnifiedMemory uses Unified Memory

func (*Benchmark) Verify

func (b *Benchmark) Verify()

Verify runs the benchmark on the CPU and compares if the result matches

type KernelArg

type KernelArg struct {
	Levels       driver.Ptr
	EdgeArray    driver.Ptr
	EdgeArrayAux driver.Ptr
	WSize        int32
	ChunkSize    int32
	NumNodes     uint32
	Curr         int32
	Flag         driver.Ptr
}

KernelArg represents the arguments to pass to the kernel

Jump to

Keyboard shortcuts

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