matrixtranspose

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package matrixtranspose implements the matrix transpose 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 {
	Width int
	// contains filtered or unexported fields
}

Benchmark defines a benchmark

func NewBenchmark

func NewBenchmark(driver *driver.Driver) *Benchmark

NewBenchmark makes a new benchmark

func (*Benchmark) Run

func (b *Benchmark) Run()

Run runs

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 {
	Output              driver.Ptr
	Input               driver.Ptr
	Block               driver.LocalPtr
	WIWidth             uint32
	WIHeight            uint32
	NumWGWidth          uint32
	GroupXOffset        uint32
	GroupYOffset        uint32
	HiddenGlobalOffsetX int64
	HiddenGlobalOffsetY int64
	HiddenGlobalOffsetZ int64
}

KernelArgs defines kernel arguments

Jump to

Keyboard shortcuts

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