|
|
@ -18,18 +18,16 @@ extern "C" |
|
|
|
|
|
|
|
|
|
|
|
#include "sph/sph_hamsi.h" |
|
|
|
#include "sph/sph_hamsi.h" |
|
|
|
#include "sph/sph_fugue.h" |
|
|
|
#include "sph/sph_fugue.h" |
|
|
|
|
|
|
|
} |
|
|
|
#include "miner.h" |
|
|
|
#include "miner.h" |
|
|
|
|
|
|
|
|
|
|
|
#include "cuda_helper.h" |
|
|
|
#include "cuda_helper.h" |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// aus cpu-miner.c |
|
|
|
|
|
|
|
extern int device_map[8]; |
|
|
|
extern int device_map[8]; |
|
|
|
|
|
|
|
|
|
|
|
// Speicher für Input/Output der verketteten Hashfunktionen |
|
|
|
|
|
|
|
static uint32_t *d_hash[8]; |
|
|
|
static uint32_t *d_hash[8]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void quark_blake512_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_blake512_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_blake512_cpu_setBlock_80(void *pdata); |
|
|
|
extern void quark_blake512_cpu_setBlock_80(void *pdata); |
|
|
|
extern void quark_blake512_cpu_hash_80(int thr_id, int threads, uint32_t startNounce, uint32_t *d_hash, int order); |
|
|
|
extern void quark_blake512_cpu_hash_80(int thr_id, int threads, uint32_t startNounce, uint32_t *d_hash, int order); |
|
|
@ -40,7 +38,6 @@ extern void quark_bmw512_cpu_hash_64(int thr_id, int threads, uint32_t startNoun |
|
|
|
|
|
|
|
|
|
|
|
extern void quark_groestl512_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_groestl512_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_groestl512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
|
extern void quark_groestl512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
|
//extern void quark_doublegroestl512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void quark_skein512_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_skein512_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_skein512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
|
extern void quark_skein512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
@ -72,14 +69,9 @@ extern void x13_hamsi512_cpu_hash_64(int thr_id, int threads, uint32_t startNoun |
|
|
|
extern void x13_fugue512_cpu_init(int thr_id, int threads); |
|
|
|
extern void x13_fugue512_cpu_init(int thr_id, int threads); |
|
|
|
extern void x13_fugue512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
|
extern void x13_fugue512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order); |
|
|
|
|
|
|
|
|
|
|
|
extern void cuda_check_cpu_init(int thr_id, int threads); |
|
|
|
|
|
|
|
extern void cuda_check_cpu_setTarget(const void *ptarget); |
|
|
|
|
|
|
|
extern uint32_t cuda_check_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_inputHash, int order); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void quark_compactTest_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_compactTest_cpu_init(int thr_id, int threads); |
|
|
|
extern void quark_compactTest_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *inpHashes, |
|
|
|
extern void quark_compactTest_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *inpHashes, |
|
|
|
uint32_t *d_noncesTrue, size_t *nrmTrue, uint32_t *d_noncesFalse, size_t *nrmFalse, |
|
|
|
uint32_t *d_noncesTrue, size_t *nrmTrue, uint32_t *d_noncesFalse, size_t *nrmFalse, int order); |
|
|
|
int order); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// X13 Hashfunktion |
|
|
|
// X13 Hashfunktion |
|
|
|
extern "C" void x13hash(void *output, const void *input) |
|
|
|
extern "C" void x13hash(void *output, const void *input) |
|
|
@ -159,8 +151,6 @@ extern "C" void x13hash(void *output, const void *input) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern bool opt_benchmark; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" int scanhash_x13(int thr_id, uint32_t *pdata, |
|
|
|
extern "C" int scanhash_x13(int thr_id, uint32_t *pdata, |
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
unsigned long *hashes_done) |
|
|
|
unsigned long *hashes_done) |
|
|
|