From 9ff175f8e67b2a4a505be0868fe4f9eb5ff268c5 Mon Sep 17 00:00:00 2001 From: Christian Buchner Date: Sat, 3 May 2014 21:25:21 +0200 Subject: [PATCH] small fixes for compilation and help --- cpu-miner.c | 1 + heavy/cuda_blake512.cu | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpu-miner.c b/cpu-miner.c index 933b44309c..5401839419 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -207,6 +207,7 @@ Options:\n\ Device IDs start counting from 0! Alternatively takes\n\ string names of your cards like gtx780ti or gt640#2\n\ (matching 2nd gt640 in the PC)\n\ + -f, --diff Divide difficulty by this factor (std is 1) \n\ -v, --vote=VOTE block reward vote (for HeavyCoin)\n\ -m, --trust-pool trust the max block reward vote (maxvote) sent by the pool\n\ -o, --url=URL URL of mining server\n\ diff --git a/heavy/cuda_blake512.cu b/heavy/cuda_blake512.cu index dd1c737ec6..9e394fd85d 100644 --- a/heavy/cuda_blake512.cu +++ b/heavy/cuda_blake512.cu @@ -20,6 +20,8 @@ uint32_t *d_hash5output[8]; // die Message (112 bzw. 116 Bytes) mit Padding zur Berechnung auf der GPU __constant__ uint64_t c_PaddedMessage[16]; // padded message (80/84+32 bytes + padding) +#include "cuda_helper.h" + // ---------------------------- BEGIN CUDA blake512 functions ------------------------------------ __constant__ uint8_t c_sigma[16][16]; @@ -136,8 +138,6 @@ template __device__ void blake512_compress( uint64_t *h, const u for( i = 0; i < 16; ++i ) h[i % 8] ^= v[i]; } -#include "cuda_helper.h" - template __global__ void blake512_gpu_hash(int threads, uint32_t startNounce, void *outputHash, uint32_t *heftyHashes, uint32_t *nonceVector) { int thread = (blockDim.x * blockIdx.x + threadIdx.x);