Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
eq_cuda_context< RB, SM, SSM, THREADS, PACKER > Class Template Reference

#include <eqcuda.hpp>

Collaboration diagram for eq_cuda_context< RB, SM, SSM, THREADS, PACKER >:
[legend]

Public Member Functions

 eq_cuda_context (int thr_id, int dev_id, fn_validate validate, fn_cancel cancel)
 
void freemem ()
 
 ~eq_cuda_context ()
 
bool solve (unsigned char *pblock, unsigned char *header, unsigned int headerlen)
 
 eq_cuda_context (int thr_id, int dev_id, fn_validate validate, fn_cancel cancel)
 
void freemem ()
 
 ~eq_cuda_context ()
 
bool solve (unsigned char *pblock, unsigned char *header, unsigned int headerlen)
 

Public Attributes

fn_validate m_fnValidate
 
fn_cancel m_fnCancel
 
int thread_id
 
int device_id
 
int throughput
 
int totalblocks
 
int threadsperblock
 
int threadsperblock_digits
 
size_t equi_mem_sz
 
u8m_buf
 

Private Attributes

equi< RB, SM > * device_eq
 
scontainerrealsolutions
 
CUcontext pctx
 

Detailed Description

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
class eq_cuda_context< RB, SM, SSM, THREADS, PACKER >

Definition at line 106 of file eqcuda.hpp.

Constructor & Destructor Documentation

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::eq_cuda_context ( int  thr_id,
int  dev_id,
fn_validate  validate,
fn_cancel  cancel 
)
template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::~eq_cuda_context ( )
template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::eq_cuda_context ( int  thr_id,
int  dev_id,
fn_validate  validate,
fn_cancel  cancel 
)
template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::~eq_cuda_context ( )

Member Function Documentation

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
void eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::freemem ( )
template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
void eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::freemem ( )
template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
bool eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::solve ( unsigned char *  pblock,
unsigned char *  header,
unsigned int  headerlen 
)
template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
bool eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::solve ( unsigned char *  pblock,
unsigned char *  header,
unsigned int  headerlen 
)

Here is the caller graph for this function:

Member Data Documentation

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
equi< RB, SM > * eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::device_eq
private

Definition at line 108 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
int eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::device_id

Definition at line 124 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
size_t eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::equi_mem_sz

Definition at line 129 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
u8 * eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::m_buf

Definition at line 130 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
fn_cancel eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::m_fnCancel

Definition at line 122 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
fn_validate eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::m_fnValidate

Definition at line 121 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
CUcontext eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::pctx
private

Definition at line 110 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
scontainerreal * eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::solutions
private

Definition at line 109 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
int eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::thread_id

Definition at line 123 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
int eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::threadsperblock

Definition at line 127 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
int eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::threadsperblock_digits

Definition at line 128 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
int eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::throughput

Definition at line 125 of file eqcuda.hpp.

template<u32 RB, u32 SM, u32 SSM, u32 THREADS, typename PACKER>
int eq_cuda_context< RB, SM, SSM, THREADS, PACKER >::totalblocks

Definition at line 126 of file eqcuda.hpp.


The documentation for this class was generated from the following file: