Skip to content

Commit 9ff175f

Browse files
author
Christian Buchner
committed
small fixes for compilation and help
1 parent f22ae4e commit 9ff175f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cpu-miner.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ Options:\n\
207207
Device IDs start counting from 0! Alternatively takes\n\
208208
string names of your cards like gtx780ti or gt640#2\n\
209209
(matching 2nd gt640 in the PC)\n\
210+
-f, --diff Divide difficulty by this factor (std is 1) \n\
210211
-v, --vote=VOTE block reward vote (for HeavyCoin)\n\
211212
-m, --trust-pool trust the max block reward vote (maxvote) sent by the pool\n\
212213
-o, --url=URL URL of mining server\n\

heavy/cuda_blake512.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ uint32_t *d_hash5output[8];
2020
// die Message (112 bzw. 116 Bytes) mit Padding zur Berechnung auf der GPU
2121
__constant__ uint64_t c_PaddedMessage[16]; // padded message (80/84+32 bytes + padding)
2222

23+
#include "cuda_helper.h"
24+
2325
// ---------------------------- BEGIN CUDA blake512 functions ------------------------------------
2426

2527
__constant__ uint8_t c_sigma[16][16];
@@ -136,8 +138,6 @@ template <int BLOCKSIZE> __device__ void blake512_compress( uint64_t *h, const u
136138
for( i = 0; i < 16; ++i ) h[i % 8] ^= v[i];
137139
}
138140

139-
#include "cuda_helper.h"
140-
141141
template <int BLOCKSIZE> __global__ void blake512_gpu_hash(int threads, uint32_t startNounce, void *outputHash, uint32_t *heftyHashes, uint32_t *nonceVector)
142142
{
143143
int thread = (blockDim.x * blockIdx.x + threadIdx.x);

0 commit comments

Comments
 (0)