You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
2.5 KiB
36 lines
2.5 KiB
9 years ago
|
#include "cuda_helper.h"
|
||
|
|
||
|
/* commonly used cuda quark kernels prototypes */
|
||
|
|
||
|
extern void quark_blake512_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_blake512_cpu_free(int thr_id);
|
||
|
extern void quark_blake512_cpu_setBlock_80(int thr_id, uint32_t *pdata);
|
||
|
extern void quark_blake512_cpu_hash_80(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_hash);
|
||
|
extern void quark_blake512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
|
||
|
extern void quark_bmw512_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_bmw512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
|
||
|
extern void quark_groestl512_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_groestl512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
extern void quark_doublegroestl512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
extern void quark_groestl512_cpu_free(int thr_id);
|
||
|
|
||
|
extern void quark_skein512_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_skein512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
|
||
|
extern void quark_keccak512_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_keccak512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
|
||
|
extern void quark_jh512_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_jh512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
|
||
|
|
||
|
extern void quark_compactTest_cpu_init(int thr_id, uint32_t threads);
|
||
|
extern void quark_compactTest_cpu_free(int thr_id);
|
||
|
extern void quark_compactTest_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *inpHashes, uint32_t *d_validNonceTable,
|
||
|
uint32_t *d_nonces1, uint32_t *nrm1, uint32_t *d_nonces2, uint32_t *nrm2, int order);
|
||
|
extern void quark_compactTest_single_false_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *inpHashes, uint32_t *d_validNonceTable,
|
||
|
uint32_t *d_nonces1, uint32_t *nrm1, int order);
|
||
|
|
||
|
extern uint32_t cuda_check_hash_branch(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_inputHash, int order);
|