This repository has been archived by the owner on May 27, 2020. It is now read-only.
forked from jgarzik/cpuminer
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make postcalc_hash asynchronous as well.
- Loading branch information
Showing
4 changed files
with
72 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
#ifdef __APPLE_CC__ | ||
#include <OpenCL/opencl.h> | ||
#else | ||
#include <CL/cl.h> | ||
#endif | ||
#ifndef __FINDNONCE_H__ | ||
#define __FINDNONCE_H__ | ||
#include "miner.h" | ||
|
||
#define MAXTHREADS (0xFFFFFFFF) | ||
#define BUFFERSIZE (sizeof(uint32_t) * 128) | ||
|
||
typedef struct { | ||
cl_uint ctx_a; cl_uint ctx_b; cl_uint ctx_c; cl_uint ctx_d; | ||
cl_uint ctx_e; cl_uint ctx_f; cl_uint ctx_g; cl_uint ctx_h; | ||
cl_uint cty_a; cl_uint cty_b; cl_uint cty_c; cl_uint cty_d; | ||
cl_uint cty_e; cl_uint cty_f; cl_uint cty_g; cl_uint cty_h; | ||
cl_uint merkle; cl_uint ntime; cl_uint nbits; cl_uint nonce; | ||
cl_uint fW0; cl_uint fW1; cl_uint fW2; cl_uint fW3; cl_uint fW15; | ||
cl_uint fW01r; cl_uint fcty_e; cl_uint fcty_e2; | ||
} dev_blk_ctx; | ||
|
||
extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data); | ||
extern void postcalc_hash(struct thr_info *thr, dev_blk_ctx *blk, struct work *work, uint32_t start); | ||
extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t start); | ||
#endif /*__FINDNONCE_H__*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters