C# 클래스 BitMaker.Miner.Gpu.GpuMiner

CPU miner base class which provides a place to plug in the search algorithm.
상속: IMiner
파일 보기 프로젝트 열기: wasabii/BitMaker 1 사용 예제들

공개 메소드들

메소드 설명
GpuMiner ( IMinerContext context, GpuDevice gpu ) : System

Initializes a new instance.

Start ( ) : void

Starts a single thread to pull and process work.

Stop ( ) : void

Stops the miner from running.

비공개 메소드들

메소드 설명
InitializeOpenCL ( ) : void

Attempts to initialize OpenCL for the selected GPU.

PrepareWork ( Work work, byte &round1Blocks, uint &round1State, byte &round2Blocks, uint &round2State ) : void

Prepares the buffers for processing a work item.

Progress ( Work work, long hashes ) : bool

Reports progress and checks for whether we should terminate the current work item.

Work ( Work work ) : void

Attempts to solve the given work with the specified solver. Returns true if a solution is found. work is updated to reflect the solution.

WorkThread ( ) : void

Entry point for a standard work thread.

메소드 상세

GpuMiner() 공개 메소드

Initializes a new instance.
public GpuMiner ( IMinerContext context, GpuDevice gpu ) : System
context IMinerContext
gpu GpuDevice
리턴 System

Start() 공개 메소드

Starts a single thread to pull and process work.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the miner from running.
public Stop ( ) : void
리턴 void