#include <libclwrapper.h>
|
| cl_gpuminer (unsigned int n, unsigned int k) |
|
| ~cl_gpuminer () |
|
bool | init (unsigned _platformId, unsigned _deviceId, std::vector< std::string > _kernels) |
|
void | run (uint8_t *header, size_t header_len, uint256 nonce, sols_t *indices, uint32_t *n_sol, uint256 *ptr) |
|
void | finish () |
|
unsigned int | PREFIX () |
|
unsigned int | NR_INPUTS () |
|
unsigned int | APX_NR_ELMS_LOG () |
|
unsigned int | COLL_DATA_SIZE_PER_TH () |
|
unsigned int | OVERHEAD () |
|
unsigned long | NR_ROWS () |
|
unsigned long | NR_SLOTS () |
|
unsigned long | HT_SIZE () |
|
unsigned int | FABCOIN_HASH_LEN () |
|
unsigned int | ROWS_PER_UINT () |
|
const char * | get_error_string (cl_int error) |
|
| cl_gpuminer () |
|
| ~cl_gpuminer () |
|
bool | init (unsigned _platformId, unsigned _deviceId, std::vector< std::string > _kernels) |
|
void | run (uint8_t *header, size_t header_len, uint256 nonce, sols_t *indices, uint32_t *n_sol, uint256 *ptr) |
|
void | finish () |
|
|
static bool | searchForAllDevices (unsigned _platformId, std::function< bool(cl::Device const &)> _callback) |
|
static bool | searchForAllDevices (std::function< bool(cl::Device const &)> _callback) |
|
static void | doForAllDevices (unsigned _platformId, std::function< void(cl::Device const &)> _callback) |
|
static void | doForAllDevices (std::function< void(cl::Device const &)> _callback) |
|
static unsigned | getNumPlatforms () |
|
static unsigned | getNumDevices (unsigned _platformId=0) |
|
static std::string | platform_info (unsigned _platformId=0, unsigned _deviceId=0) |
|
static std::vector< cl::Device > | getDevices (std::vector< cl::Platform > const &_platforms, unsigned _platformId) |
|
static std::vector< cl::Platform > | getPlatforms () |
|
static void | listDevices () |
|
static bool | configureGPU (unsigned _platformId, unsigned _localWorkSize, unsigned _globalWorkSize) |
|
static bool | searchForAllDevices (unsigned _platformId, std::function< bool(cl::Device const &)> _callback) |
|
static bool | searchForAllDevices (std::function< bool(cl::Device const &)> _callback) |
|
static void | doForAllDevices (unsigned _platformId, std::function< void(cl::Device const &)> _callback) |
|
static void | doForAllDevices (std::function< void(cl::Device const &)> _callback) |
|
static unsigned | getNumPlatforms () |
|
static unsigned | getNumDevices (unsigned _platformId=0) |
|
static std::string | platform_info (unsigned _platformId=0, unsigned _deviceId=0) |
|
static std::vector< cl::Device > | getDevices (std::vector< cl::Platform > const &_platforms, unsigned _platformId) |
|
static std::vector< cl::Platform > | getPlatforms () |
|
static void | listDevices () |
|
static bool | configureGPU (unsigned _platformId, unsigned _localWorkSize, unsigned _globalWorkSize) |
|
|
int | compare_indices32 (uint32_t *a, uint32_t *b, size_t n_current_indices) |
|
void | normalize_indices (uint32_t *indices) |
|
char * | s_hexdump (const void *_a, uint32_t a_len) |
|
size_t | select_work_size_blake (void) |
|
void | sort_pair (uint32_t *a, uint32_t len) |
|
uint32_t | verify_sol (sols_t *sols, unsigned sol_i) |
|
int | compare_indices32 (uint32_t *a, uint32_t *b, size_t n_current_indices) |
|
void | normalize_indices (uint32_t *indices) |
|
char * | s_hexdump (const void *_a, uint32_t a_len) |
|
size_t | select_work_size_blake (void) |
|
void | sort_pair (uint32_t *a, uint32_t len) |
|
uint32_t | verify_sol (sols_t *sols, unsigned sol_i) |
|
const char * | get_error_string (cl_int error) |
|
Definition at line 68 of file libclwrapper.h.
cl_gpuminer::cl_gpuminer |
( |
unsigned int |
n, |
|
|
unsigned int |
k |
|
) |
| |
cl_gpuminer::~cl_gpuminer |
( |
| ) |
|
cl_gpuminer::cl_gpuminer |
( |
| ) |
|
cl_gpuminer::~cl_gpuminer |
( |
| ) |
|
unsigned int cl_gpuminer::APX_NR_ELMS_LOG |
( |
| ) |
|
|
inline |
unsigned int cl_gpuminer::COLL_DATA_SIZE_PER_TH |
( |
| ) |
|
|
inline |
int cl_gpuminer::compare_indices32 |
( |
uint32_t * |
a, |
|
|
uint32_t * |
b, |
|
|
size_t |
n_current_indices |
|
) |
| |
|
inlineprivate |
int cl_gpuminer::compare_indices32 |
( |
uint32_t * |
a, |
|
|
uint32_t * |
b, |
|
|
size_t |
n_current_indices |
|
) |
| |
|
inlineprivate |
static bool cl_gpuminer::configureGPU |
( |
unsigned |
_platformId, |
|
|
unsigned |
_localWorkSize, |
|
|
unsigned |
_globalWorkSize |
|
) |
| |
|
static |
bool cl_gpuminer::configureGPU |
( |
unsigned |
_platformId, |
|
|
unsigned |
_localWorkSize, |
|
|
unsigned |
_globalWorkSize |
|
) |
| |
|
static |
static void cl_gpuminer::doForAllDevices |
( |
unsigned |
_platformId, |
|
|
std::function< void(cl::Device const &)> |
_callback |
|
) |
| |
|
static |
static void cl_gpuminer::doForAllDevices |
( |
unsigned |
_platformId, |
|
|
std::function< void(cl::Device const &)> |
_callback |
|
) |
| |
|
static |
unsigned int cl_gpuminer::FABCOIN_HASH_LEN |
( |
| ) |
|
|
inline |
void cl_gpuminer::finish |
( |
| ) |
|
void cl_gpuminer::finish |
( |
| ) |
|
const char* cl_gpuminer::get_error_string |
( |
cl_int |
error | ) |
|
|
inlineprivate |
const char* cl_gpuminer::get_error_string |
( |
cl_int |
error | ) |
|
|
inline |
std::vector< cl::Device > cl_gpuminer::getDevices |
( |
std::vector< cl::Platform > const & |
_platforms, |
|
|
unsigned |
_platformId |
|
) |
| |
|
static |
static std::vector<cl::Device> cl_gpuminer::getDevices |
( |
std::vector< cl::Platform > const & |
_platforms, |
|
|
unsigned |
_platformId |
|
) |
| |
|
static |
static unsigned cl_gpuminer::getNumDevices |
( |
unsigned |
_platformId = 0 | ) |
|
|
static |
unsigned cl_gpuminer::getNumDevices |
( |
unsigned |
_platformId = 0 | ) |
|
|
static |
static unsigned cl_gpuminer::getNumPlatforms |
( |
| ) |
|
|
static |
unsigned cl_gpuminer::getNumPlatforms |
( |
| ) |
|
|
static |
static std::vector<cl::Platform> cl_gpuminer::getPlatforms |
( |
| ) |
|
|
static |
unsigned long cl_gpuminer::HT_SIZE |
( |
| ) |
|
|
inline |
bool cl_gpuminer::init |
( |
unsigned |
_platformId, |
|
|
unsigned |
_deviceId, |
|
|
std::vector< std::string > |
_kernels |
|
) |
| |
bool cl_gpuminer::init |
( |
unsigned |
_platformId, |
|
|
unsigned |
_deviceId, |
|
|
std::vector< std::string > |
_kernels |
|
) |
| |
void cl_gpuminer::listDevices |
( |
| ) |
|
|
static |
static void cl_gpuminer::listDevices |
( |
| ) |
|
|
static |
void cl_gpuminer::normalize_indices |
( |
uint32_t * |
indices | ) |
|
|
inlineprivate |
void cl_gpuminer::normalize_indices |
( |
uint32_t * |
indices | ) |
|
|
inlineprivate |
unsigned int cl_gpuminer::NR_INPUTS |
( |
| ) |
|
|
inline |
unsigned long cl_gpuminer::NR_ROWS |
( |
| ) |
|
|
inline |
unsigned long cl_gpuminer::NR_SLOTS |
( |
| ) |
|
|
inline |
unsigned int cl_gpuminer::OVERHEAD |
( |
| ) |
|
|
inline |
static std::string cl_gpuminer::platform_info |
( |
unsigned |
_platformId = 0 , |
|
|
unsigned |
_deviceId = 0 |
|
) |
| |
|
static |
string cl_gpuminer::platform_info |
( |
unsigned |
_platformId = 0 , |
|
|
unsigned |
_deviceId = 0 |
|
) |
| |
|
static |
unsigned int cl_gpuminer::PREFIX |
( |
| ) |
|
|
inline |
unsigned int cl_gpuminer::ROWS_PER_UINT |
( |
| ) |
|
|
inline |
void cl_gpuminer::run |
( |
uint8_t * |
header, |
|
|
size_t |
header_len, |
|
|
uint256 |
nonce, |
|
|
sols_t * |
indices, |
|
|
uint32_t * |
n_sol, |
|
|
uint256 * |
ptr |
|
) |
| |
void cl_gpuminer::run |
( |
uint8_t * |
header, |
|
|
size_t |
header_len, |
|
|
uint256 |
nonce, |
|
|
sols_t * |
indices, |
|
|
uint32_t * |
n_sol, |
|
|
uint256 * |
ptr |
|
) |
| |
char* cl_gpuminer::s_hexdump |
( |
const void * |
_a, |
|
|
uint32_t |
a_len |
|
) |
| |
|
inlineprivate |
char* cl_gpuminer::s_hexdump |
( |
const void * |
_a, |
|
|
uint32_t |
a_len |
|
) |
| |
|
inlineprivate |
static bool cl_gpuminer::searchForAllDevices |
( |
unsigned |
_platformId, |
|
|
std::function< bool(cl::Device const &)> |
_callback |
|
) |
| |
|
static |
static bool cl_gpuminer::searchForAllDevices |
( |
unsigned |
_platformId, |
|
|
std::function< bool(cl::Device const &)> |
_callback |
|
) |
| |
|
static |
size_t cl_gpuminer::select_work_size_blake |
( |
void |
| ) |
|
|
inlineprivate |
size_t cl_gpuminer::select_work_size_blake |
( |
void |
| ) |
|
|
inlineprivate |
void cl_gpuminer::sort_pair |
( |
uint32_t * |
a, |
|
|
uint32_t |
len |
|
) |
| |
|
inlineprivate |
void cl_gpuminer::sort_pair |
( |
uint32_t * |
a, |
|
|
uint32_t |
len |
|
) |
| |
|
inlineprivate |
uint32_t cl_gpuminer::verify_sol |
( |
sols_t * |
sols, |
|
|
unsigned |
sol_i |
|
) |
| |
|
inlineprivate |
uint32_t cl_gpuminer::verify_sol |
( |
sols_t * |
sols, |
|
|
unsigned |
sol_i |
|
) |
| |
|
inlineprivate |
static unsigned const cl_gpuminer::c_defaultGlobalWorkSizeMultiplier = 4096 |
|
static |
Default value of the global work size as a multiplier of the local work size.
Definition at line 108 of file libclwrapper.h.
static unsigned const cl_gpuminer::c_defaultLocalWorkSize = 32 |
|
static |
Default value of the local work size. Also known as workgroup size.
Definition at line 106 of file libclwrapper.h.
static unsigned const cl_gpuminer::c_defaultMSPerBatch = 0 |
|
static |
Default value of the milliseconds per global work size (per batch)
Definition at line 110 of file libclwrapper.h.
size_t cl_gpuminer::dbg_size = 1 * sizeof (debug_t) |
|
private |
uint32_t * cl_gpuminer::dst_solutions |
|
private |
unsigned cl_gpuminer::m_deviceBits |
|
private |
unsigned cl_gpuminer::m_globalWorkSize |
|
private |
std::vector< cl::Kernel > cl_gpuminer::m_gpuKernels |
|
private |
bool cl_gpuminer::m_openclOnePointOne |
|
private |
unsigned int cl_gpuminer::m_stepWorkSizeAdjust |
|
private |
The step used in the work size adjustment.
Definition at line 232 of file libclwrapper.h.
int cl_gpuminer::m_wayWorkSizeAdjust = 0 |
|
private |
The Work Size way of adjustment, > 0 when previously increased, < 0 when previously decreased.
Definition at line 234 of file libclwrapper.h.
uint64_t cl_gpuminer::nonce |
|
private |
unsigned int cl_gpuminer::NR_ROWS_LOG |
unsigned int cl_gpuminer::PARAM_K |
unsigned int cl_gpuminer::PARAM_N |
static bool cl_gpuminer::s_allowCPU = false |
|
staticprivate |
Allow CPU to appear as an OpenCL device or not. Default is false.
Definition at line 243 of file libclwrapper.h.
static unsigned cl_gpuminer::s_extraRequiredGPUMem |
|
staticprivate |
GPU memory required for other things, like window rendering e.t.c.
User can set it via the –cl-extragpu-mem argument.
Definition at line 246 of file libclwrapper.h.
The initial global work size for the searches.
Definition at line 239 of file libclwrapper.h.
The target milliseconds per batch for the search. If 0, then no adjustment will happen.
Definition at line 241 of file libclwrapper.h.
uint32_t cl_gpuminer::solutions |
|
private |
uint64_t cl_gpuminer::total |
|
private |
static const size_t cl_gpuminer::z_collision_bit_length = z_n / (z_k + 1) |
|
staticprivate |
static const unsigned int cl_gpuminer::z_k = 9 |
|
staticprivate |
static const unsigned int cl_gpuminer::z_n = 200 |
|
staticprivate |
const cl_int cl_gpuminer::zero = 0 |
|
private |
The documentation for this class was generated from the following files: