nw

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 nw defines the Needleman–Wunsch benchmark

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	// 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

func (*Benchmark) SelectGPU

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

SelectGPU selects gpu

func (*Benchmark) SetLength

func (b *Benchmark) SetLength(length int)

SetLength sets length

func (*Benchmark) SetPenalty

func (b *Benchmark) SetPenalty(penalty int)

SetPenalty sets penalty

func (*Benchmark) SetUnifiedMemory

func (b *Benchmark) SetUnifiedMemory()

SetUnifiedMemory Use Unified Memor

func (*Benchmark) Verify

func (b *Benchmark) Verify()

Verify verifies

type KernelArgs

type KernelArgs struct {
	Reference          driver.Ptr
	InputItemSets      driver.Ptr
	OutputItemSets     driver.Ptr
	LocalInputItemSets driver.LocalPtr
	LocalReference     driver.LocalPtr
	Cols               int32
	Penalty            int32
	Blk                int32
	BlockSize          int32
	BlockWidth         int32
	WorkSize           int32
	OffsetR            int32
	OffsetC            int32
}

KernelArgs defines kernel arguments

Jump to

Keyboard shortcuts

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