Documentation
¶
Index ¶
Constants ¶
View Source
const ( ComputeAPIClassUnspecified = ComputeAPIClass((C.ComputeApiClass)(C.COMPUTE_API_CLASS_UNSPECIFIED)) ComputeAPIClassCPU = ComputeAPIClass((C.ComputeApiClass)(C.COMPUTE_API_CLASS_CPU)) ComputeAPIClassCuda = ComputeAPIClass((C.ComputeApiClass)(C.COMPUTE_API_CLASS_CUDA)) ComputeAPIClassVulkan = ComputeAPIClass((C.ComputeApiClass)(C.COMPUTE_API_CLASS_VULKAN)) StopResultOk = StopResult(C.SPACEMESH_API_ERROR_NONE) StopResultError = StopResult(C.SPACEMESH_API_ERROR) StopResultErrorTimeout = StopResult(C.SPACEMESH_API_ERROR_TIMEOUT) StopResultErrorAlready = StopResult(C.SPACEMESH_API_ERROR_ALREADY) StopResultErrorCancelled = StopResult(C.SPACEMESH_API_ERROR_CANCELED) )
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 ¶
type StopResult ¶
type StopResult int
func Stop ¶
func Stop() StopResult
func (StopResult) String ¶
func (s StopResult) String() string
Click to show internal directories.
Click to hide internal directories.