Browse Source

gost gpu hash added

2upstream
orignal 8 years ago
parent
commit
97b22b2660
  1. 2
      Makefile.am
  2. 1106
      gost/cuda_gosthash.cu
  3. 9
      gost/gost.cu

2
Makefile.am

@ -70,7 +70,7 @@ ccminer_SOURCES = elist.h miner.h compat.h \
x15/whirlpool.cu x15/cuda_x15_whirlpool_sm3.cu \ x15/whirlpool.cu x15/cuda_x15_whirlpool_sm3.cu \
x17/x17.cu x17/hmq17.cu x17/cuda_x17_haval256.cu x17/cuda_x17_sha512.cu \ x17/x17.cu x17/hmq17.cu x17/cuda_x17_haval256.cu x17/cuda_x17_sha512.cu \
x11/c11.cu x11/s3.cu x11/sib.cu x11/veltor.cu x11/cuda_streebog.cu \ x11/c11.cu x11/s3.cu x11/sib.cu x11/veltor.cu x11/cuda_streebog.cu \
gost/gost.cu gost/gost.cu gost/cuda_gosthash.cu
# scrypt # scrypt
ccminer_SOURCES += scrypt.cpp scrypt-jane.cpp \ ccminer_SOURCES += scrypt.cpp scrypt-jane.cpp \

1106
gost/cuda_gosthash.cu

File diff suppressed because it is too large Load Diff

9
gost/gost.cu

@ -32,7 +32,8 @@ extern "C" void gosthash(void *output, const void *input)
memcpy(output, hash, 32); memcpy(output, hash, 32);
} }
extern void streebog_cpu_hash_64(int thr_id, uint32_t threads, uint32_t *d_hash); extern void gost_hash_64(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_hash);
extern void gost_hash_32(int thr_id, uint32_t threads, uint32_t startNounce, uint32_t *d_hash);
//#define _DEBUG //#define _DEBUG
#define _DEBUG_PREFIX "sib" #define _DEBUG_PREFIX "sib"
@ -80,8 +81,10 @@ extern "C" int scanhash_gost(int thr_id, struct work* work, uint32_t max_nonce,
int order = 0; int order = 0;
// Hash with CUDA // Hash with CUDA
streebog_cpu_hash_64(thr_id, throughput, d_hash[thr_id]); gost_hash_64(thr_id, throughput, pdata[19], d_hash[thr_id]);
TRACE("gost :"); TRACE("gost64 :");
gost_hash_32(thr_id, throughput, pdata[19], d_hash[thr_id]);
TRACE("gost32 :");
work->nonces[0] = cuda_check_hash(thr_id, throughput, pdata[19], d_hash[thr_id]); work->nonces[0] = cuda_check_hash(thr_id, throughput, pdata[19], d_hash[thr_id]);
if (work->nonces[0] != UINT32_MAX) if (work->nonces[0] != UINT32_MAX)

Loading…
Cancel
Save