mirror of https://github.com/GOSTSec/sgminer
Con Kolivas
14 years ago
3 changed files with 16 additions and 0 deletions
@ -1,12 +1,15 @@ |
|||||||
#ifndef __FINDNONCE_H__ |
#ifndef __FINDNONCE_H__ |
||||||
#define __FINDNONCE_H__ |
#define __FINDNONCE_H__ |
||||||
#include "miner.h" |
#include "miner.h" |
||||||
|
#include "config.h" |
||||||
|
|
||||||
#define MAXTHREADS (0xFFFFFFFEULL) |
#define MAXTHREADS (0xFFFFFFFEULL) |
||||||
/* Maximum worksize 512 * maximum vectors 4 plus one flag entry */ |
/* Maximum worksize 512 * maximum vectors 4 plus one flag entry */ |
||||||
#define MAXBUFFERS (4 * 512) |
#define MAXBUFFERS (4 * 512) |
||||||
#define BUFFERSIZE (sizeof(uint32_t) * (MAXBUFFERS + 1)) |
#define BUFFERSIZE (sizeof(uint32_t) * (MAXBUFFERS + 1)) |
||||||
|
|
||||||
|
#ifdef HAVE_OPENCL |
||||||
extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data); |
extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data); |
||||||
extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res); |
extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res); |
||||||
|
#endif /* HAVE_OPENCL */ |
||||||
#endif /*__FINDNONCE_H__*/ |
#endif /*__FINDNONCE_H__*/ |
||||||
|
Loading…
Reference in new issue