floydwarshall

package
v3.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package floydwarshall implements the Floyd-Warshall benchmark from AMDAPPSDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	NumNodes      uint32
	NumIterations uint32
	// contains filtered or unexported fields
}

Benchmark defines a benchmark

func NewBenchmark

func NewBenchmark(driver *driver.Driver) *Benchmark

NewBenchmark creates a new benchmark

func (*Benchmark) Run

func (b *Benchmark) Run()

Run runs the benchmark

func (*Benchmark) SelectGPU

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

SelectGPU selects gpu

func (*Benchmark) SetUnifiedMemory

func (b *Benchmark) SetUnifiedMemory()

SetUnifiedMemory Use Unified Memory

func (*Benchmark) Verify

func (b *Benchmark) Verify()

Verify verifies

type KernelArgs

type KernelArgs struct {
	OutputPathDistanceMatrix driver.Ptr
	OutputPathMatrix         driver.Ptr

	NumNodes uint32
	Pass     uint32
}

KernelArgs defines kernel arguments

Jump to

Keyboard shortcuts

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