Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Typedefs
eqcuda.hpp File Reference
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdexcept>
#include <vector>
#include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
Include dependency graph for eqcuda.hpp:

Go to the source code of this file.

Classes

class  rt_error
 
struct  eq_cuda_context210_9
 
struct  scontainerreal
 
struct  equi< RB, SM >
 
class  eq_cuda_context< RB, SM, SSM, THREADS, PACKER >
 

Macros

#define _SNPRINTF   snprintf
 
#define nullptr   NULL
 
#define checkCudaErrors(call)
 
#define checkCudaDriverErrors(call)
 
#define PROOFSIZE1   (1<<9)
 
#define MAXREALSOLS   9
 
#define CONFIG_MODE_1   9, 1248, 12, 640, packer_cantor
 

Typedefs

typedef uint64_t u64
 
typedef uint32_t u32
 
typedef uint16_t u16
 
typedef uint8_t u8
 
typedef unsigned char uchar
 
typedef bool(* fn_cancel) ()
 
typedef bool(* fn_validate) (std::vector< unsigned char >, unsigned char *, int)
 
typedef u32 proof[PROOFSIZE1]
 

Macro Definition Documentation

#define _SNPRINTF   snprintf

Definition at line 18 of file eqcuda.hpp.

#define checkCudaDriverErrors (   call)
Value:
do { \
CUresult err = call; \
if (CUDA_SUCCESS != err) { \
char errorBuff[512]; \
_SNPRINTF(errorBuff, sizeof(errorBuff) - 1, \
"CUDA error DRIVER: '%d' in func '%s' line %d", \
err, __FUNCTION__, __LINE__); \
throw rt_error(errorBuff); \
} \
} while (0)
if(a.IndicesBefore(b, len, lenIndices))
Definition: equihash.cpp:243
#define _SNPRINTF
Definition: eqcuda.hpp:18

Definition at line 48 of file eqcuda.hpp.

#define checkCudaErrors (   call)
Value:
do { \
cudaError_t err = call; \
if (cudaSuccess != err) { \
char errorBuff[512]; \
_SNPRINTF(errorBuff, sizeof(errorBuff) - 1, \
"CUDA error '%s' in func '%s' line %d", \
cudaGetErrorString(err), __FUNCTION__, __LINE__); \
throw std::runtime_error(errorBuff); \
} \
} while (0)
if(a.IndicesBefore(b, len, lenIndices))
Definition: equihash.cpp:243
#define _SNPRINTF
Definition: eqcuda.hpp:18

Definition at line 36 of file eqcuda.hpp.

#define CONFIG_MODE_1   9, 1248, 12, 640, packer_cantor

Definition at line 134 of file eqcuda.hpp.

#define MAXREALSOLS   9

Definition at line 98 of file eqcuda.hpp.

#define nullptr   NULL

Definition at line 22 of file eqcuda.hpp.

#define PROOFSIZE1   (1<<9)

Definition at line 73 of file eqcuda.hpp.

Typedef Documentation

typedef bool(* fn_cancel) ()

Definition at line 70 of file eqcuda.hpp.

typedef bool(* fn_validate) (std::vector< unsigned char >, unsigned char *, int)

Definition at line 71 of file eqcuda.hpp.

typedef u32 proof[PROOFSIZE1]

Definition at line 74 of file eqcuda.hpp.

typedef uint16_t u16

Definition at line 62 of file eqcuda.hpp.

typedef uint32_t u32

Definition at line 61 of file eqcuda.hpp.

typedef uint64_t u64

Definition at line 60 of file eqcuda.hpp.

typedef uint8_t u8

Definition at line 63 of file eqcuda.hpp.

typedef unsigned char uchar

Definition at line 64 of file eqcuda.hpp.