24 #ifndef __GPU_SOLVER_H 25 #define __GPU_SOLVER_H 40 #include <OpenCL/opencl.h> 46 #define MAX_SOURCE_SIZE (0x200000) 48 #define DIGITBITS_S PREFIX 52 virtual const char*
what()
const throw() {
53 return "GPU Equihash solver was cancelled";
67 GPUSolver(
unsigned platform,
unsigned device);
69 bool run(
unsigned int n,
unsigned int k, uint8_t *header,
size_t header_len,
uint256 nonce,
70 const std::function<
bool(std::vector<unsigned char>)> validBlock,
72 crypto_generichash_blake2b_state base_state);
78 static const uint32_t PROOFSIZE = 1 <<
PARAM_K;
87 bool GPUSolve(
unsigned int n,
unsigned int k, uint8_t *header,
size_t header_len,
uint256 &nonce,
88 const std::function<
bool(std::vector<unsigned char>)> validBlock,
90 crypto_generichash_blake2b_state base_state);
94 #endif // __GPU_SOLVER_H
#define function(a, b, c, d, k, s)
virtual const char * what() const