Skip to content

Commit

Permalink
add nearly 2x faster cuda mean cuckaroom solver (#242)
Browse files Browse the repository at this point in the history
* support CUDA C32 mining

* add nearly 2x faster cuda mean cuckaroom solver

* update cuckoo

* update cuckoo again

* add old plugin
  • Loading branch information
tromp committed Feb 19, 2020
1 parent 28f3953 commit 2f210a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions cuckoo-miner/src/cuckoo_sys/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ endif()

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

set (AR2_CUDA_SRC cuckoo/src/cuckaroom/kernel.cuh cuckoo/src/cuckaroom/mean.cu ${BLAKE_2B} )
set (AR2_CUDA_SRC cuckoo/src/cuckaroom/meaner.cu ${BLAKE_2B} )
set (AR2_CUDA_SRC2 cuckoo/src/cuckaroom/kernel.cuh cuckoo/src/cuckaroom/mean.cu ${BLAKE_2B} )

if (NOT SKIP_CUCKAROOM_GPU)
build_cuda_target("${AR2_CUDA_SRC}" cuckaroom_cuda_19 "-DXBITS=1 -DEPS_A=4 -DEPS_B=3 -DIDXSHIFT=8 -DEDGEBITS=19")
build_cuda_target("${AR2_CUDA_SRC}" cuckaroom_cuda_29 "-DEDGEBITS=29")
build_cuda_target("${AR2_CUDA_SRC2}" cuckaroom_old_cuda_29 "-DEDGEBITS=29")
build_cuda_target("${AR2_CUDA_SRC2}" cuckaroom_cuda_19 "-DXBITS=1 -DEPS_A=4 -DEPS_B=3 -DIDXSHIFT=8 -DEDGEBITS=19")
endif()
2 changes: 1 addition & 1 deletion cuckoo-miner/src/cuckoo_sys/plugins/cuckoo
4 changes: 1 addition & 3 deletions grin-miner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,10 @@ nthreads = 4
# currently requires 6GB GPU memory
#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroom_cuda_29"
# or, prior to 2nd hardfork: plugin_name = "cuckarood_cuda_29"
#[mining.miner_plugin_config.parameters]
#device = 0
#cpuload = 1
#ntrims = 399
# or, prior to 2nd hardfork: ntrims = 31
#ntrims = 15
#genablocks = 1024
#recoverblocks = 2048
#recovertpb = 256
Expand Down

0 comments on commit 2f210a4

Please sign in to comment.