gpu

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Benchmark

func Benchmark(p ComputeProvider) (int, error)

func CPUProviderID

func CPUProviderID() int

Types

type ComputeAPIClass

type ComputeAPIClass uint

func (ComputeAPIClass) String

func (c ComputeAPIClass) String() string

type ComputeProvider

type ComputeProvider struct {
	ID         uint
	Model      string
	ComputeAPI ComputeAPIClass
}

func Providers

func Providers() []ComputeProvider

type ScryptPositionsResult

type ScryptPositionsResult struct {
	Output       []byte
	IdxSolution  uint64
	HashesPerSec int
	Stopped      bool
}

func ScryptPositions

func ScryptPositions(providerId uint, commitment, salt []byte, startPosition, endPosition uint64, bitsPerLabel uint32) (*ScryptPositionsResult, error)

type StopResult

type StopResult int

func Stop

func Stop() StopResult

func (StopResult) String

func (s StopResult) String() string

Jump to

Keyboard shortcuts

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