Skip to content

Commit

Permalink
replace C29 CUDA miner by rewrite of photon's miner (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
tromp authored and yeastplume committed Sep 2, 2019
1 parent d28bd91 commit 1c1e163
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cuckoo-miner/src/cuckoo_sys/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ build_cpu_target("${AR2_CPU_SRC}" cuckarood_cpu_avx2_29 "-mavx2 -DNSIPHASH=8 -DE

### AR CUDA TARGETS #########################################

set (AR2_CUDA_SRC cuckoo/src/cuckarood/mean.cu ${BLAKE_2B} )
set (AR2_CUDA_SRC cuckoo/src/cuckarood/photon.cu cuckoo/src/cuckarood/kernel.cu ${BLAKE_2B} )

if (NOT SKIP_CUCKAROOD_GPU)
build_cuda_target("${AR2_CUDA_SRC}" cuckarood_cuda_19 "-DEPS_A=4 -DEPS_B=3 -DIDXSHIFT=2 -DEDGEBITS=19")
build_cuda_target("${AR2_CUDA_SRC}" cuckarood_cuda_19 "-DXBITS=1 -DEPS_A=4 -DEPS_B=3 -DIDXSHIFT=8 -DEDGEBITS=19")
build_cuda_target("${AR2_CUDA_SRC}" cuckarood_cuda_29 "-DEDGEBITS=29")
endif()
14 changes: 5 additions & 9 deletions grin-miner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,16 @@ nthreads = 4
# instance of each plugin. device 0 is used by default
#

# currently requires 5.5GB+ GPU memory
# currently requires 5GB GPU memory
#[[mining.miner_plugin_config]]
#plugin_name = "cuckarood_cuda_29"
#[mining.miner_plugin_config.parameters]
#device = 0
#cpuload = 1
#ntrims = 176
#genablocks = 4096
#genatpb = 128
#genbtpb = 128
#trimtpb = 512
#tailtpb = 1024
#recoverblocks = 1024
#recovertpb = 1024
#ntrims = 458
#genablocks = 1024
#recoverblocks = 2048
#recovertpb = 256

# e.g. To enable multiple devices (copy params from above as needed)

Expand Down

0 comments on commit 1c1e163

Please sign in to comment.