|
|
@ -15,6 +15,7 @@ extern void blake256_cpu_setBlock_80(uint32_t *pdata); |
|
|
|
|
|
|
|
|
|
|
|
extern void lyra2Z_cpu_init(int thr_id, uint32_t threads, uint64_t *d_matrix); |
|
|
|
extern void lyra2Z_cpu_init(int thr_id, uint32_t threads, uint64_t *d_matrix); |
|
|
|
extern void lyra2Z_cpu_init_sm2(int thr_id, uint32_t threads); |
|
|
|
extern void lyra2Z_cpu_init_sm2(int thr_id, uint32_t threads); |
|
|
|
|
|
|
|
extern void lyra2Z_cpu_free(int thr_id); |
|
|
|
extern uint32_t lyra2Z_cpu_hash_32(int thr_id, uint32_t threads, uint32_t startNonce, uint64_t *d_outputHash, bool gtx750ti); |
|
|
|
extern uint32_t lyra2Z_cpu_hash_32(int thr_id, uint32_t threads, uint32_t startNonce, uint64_t *d_outputHash, bool gtx750ti); |
|
|
|
|
|
|
|
|
|
|
|
extern void lyra2Z_setTarget(const void *ptarget); |
|
|
|
extern void lyra2Z_setTarget(const void *ptarget); |
|
|
@ -158,6 +159,8 @@ extern "C" void free_lyra2Z(int thr_id) |
|
|
|
cudaFree(d_hash[thr_id]); |
|
|
|
cudaFree(d_hash[thr_id]); |
|
|
|
if (device_sm[dev_id] >= 350) |
|
|
|
if (device_sm[dev_id] >= 350) |
|
|
|
cudaFree(d_matrix[thr_id]); |
|
|
|
cudaFree(d_matrix[thr_id]); |
|
|
|
|
|
|
|
lyra2Z_cpu_free(thr_id); |
|
|
|
|
|
|
|
|
|
|
|
init[thr_id] = false; |
|
|
|
init[thr_id] = false; |
|
|
|
|
|
|
|
|
|
|
|
cudaDeviceSynchronize(); |
|
|
|
cudaDeviceSynchronize(); |
|
|
|