#include <libgpusolver.h>
|
| GPUSolver () |
|
| GPUSolver (unsigned platform, unsigned device) |
|
| ~GPUSolver () |
|
bool | run (unsigned int n, unsigned int k, uint8_t *header, size_t header_len, uint256 nonce, const std::function< bool(std::vector< unsigned char >)> validBlock, const std::function< bool(GPUSolverCancelCheck)> cancelled, crypto_generichash_blake2b_state base_state) |
|
| GPUSolver (unsigned int n, unsigned k) |
|
| GPUSolver (unsigned platform, unsigned device, unsigned int n, unsigned int k) |
|
| ~GPUSolver () |
|
std::pair< int, int > | getparam () |
|
bool | run (unsigned int n, unsigned int k, uint8_t *header, size_t header_len, uint256 nonce, const std::function< bool(std::vector< unsigned char >)> validBlock, const std::function< bool(GPUSolverCancelCheck)> cancelled, crypto_generichash_blake2b_state base_state) |
|
|
bool | GPUSolve (unsigned int n, unsigned int k, uint8_t *header, size_t header_len, uint256 &nonce, const std::function< bool(std::vector< unsigned char >)> validBlock, const std::function< bool(GPUSolverCancelCheck)> cancelled, crypto_generichash_blake2b_state base_state) |
|
bool | GPUSolve (unsigned int n, unsigned int k, uint8_t *header, size_t header_len, uint256 &nonce, const std::function< bool(std::vector< unsigned char >)> validBlock, const std::function< bool(GPUSolverCancelCheck)> cancelled, crypto_generichash_blake2b_state base_state) |
|
Definition at line 63 of file libgpusolver.h.
GPUSolver::GPUSolver |
( |
unsigned |
platform, |
|
|
unsigned |
device |
|
) |
| |
GPUSolver::~GPUSolver |
( |
| ) |
|
GPUSolver::GPUSolver |
( |
unsigned int |
n, |
|
|
unsigned |
k |
|
) |
| |
GPUSolver::GPUSolver |
( |
unsigned |
platform, |
|
|
unsigned |
device, |
|
|
unsigned int |
n, |
|
|
unsigned int |
k |
|
) |
| |
GPUSolver::~GPUSolver |
( |
| ) |
|
std::pair<int, int> GPUSolver::getparam |
( |
| ) |
|
|
inline |
bool GPUSolver::GPUSolve |
( |
unsigned int |
n, |
|
|
unsigned int |
k, |
|
|
uint8_t * |
header, |
|
|
size_t |
header_len, |
|
|
uint256 & |
nonce, |
|
|
const std::function< bool(std::vector< unsigned char >)> |
validBlock, |
|
|
const std::function< bool(GPUSolverCancelCheck)> |
cancelled, |
|
|
crypto_generichash_blake2b_state |
base_state |
|
) |
| |
|
private |
bool GPUSolver::GPUSolve |
( |
unsigned int |
n, |
|
|
unsigned int |
k, |
|
|
uint8_t * |
header, |
|
|
size_t |
header_len, |
|
|
uint256 & |
nonce, |
|
|
const std::function< bool(std::vector< unsigned char >)> |
validBlock, |
|
|
const std::function< bool(GPUSolverCancelCheck)> |
cancelled, |
|
|
crypto_generichash_blake2b_state |
base_state |
|
) |
| |
|
private |
bool GPUSolver::run |
( |
unsigned int |
n, |
|
|
unsigned int |
k, |
|
|
uint8_t * |
header, |
|
|
size_t |
header_len, |
|
|
uint256 |
nonce, |
|
|
const std::function< bool(std::vector< unsigned char >)> |
validBlock, |
|
|
const std::function< bool(GPUSolverCancelCheck)> |
cancelled, |
|
|
crypto_generichash_blake2b_state |
base_state |
|
) |
| |
bool GPUSolver::run |
( |
unsigned int |
n, |
|
|
unsigned int |
k, |
|
|
uint8_t * |
header, |
|
|
size_t |
header_len, |
|
|
uint256 |
nonce, |
|
|
const std::function< bool(std::vector< unsigned char >)> |
validBlock, |
|
|
const std::function< bool(GPUSolverCancelCheck)> |
cancelled, |
|
|
crypto_generichash_blake2b_state |
base_state |
|
) |
| |
float GPUSolver::avg = 0.f |
|
private |
uint32_t GPUSolver::counter = 0 |
|
private |
uint32_t GPUSolver::n_sol |
|
private |
const uint32_t GPUSolver::PROOFSIZE = 1 << PARAM_K |
|
staticprivate |
float GPUSolver::sum = 0.f |
|
private |
The documentation for this class was generated from the following files: