Skip to content

Commit

Permalink
patch 3
Browse files Browse the repository at this point in the history
cuda 10.0, fix windows build patch sp-hash#3
  • Loading branch information
nemosminer committed Apr 21, 2019
1 parent 5ba9b20 commit 33a7302
Show file tree
Hide file tree
Showing 54 changed files with 12,501 additions and 3,606 deletions.
3 changes: 2 additions & 1 deletion Algo256/cuda_blake256.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ __device__ uint32_t __byte_perm(uint32_t a, uint32_t b, uint32_t c);
#endif

#define UINT2(x,y) make_uint2(x,y)

/* removed otherwise you will get "ROR8 already defined" in linux
__device__ __inline__ uint2 ROR8(const uint2 a) {
uint2 result;
result.x = __byte_perm(a.y, a.x, 0x0765);
result.y = __byte_perm(a.x, a.y, 0x0765);
return result;
}
*/

static __device__ uint64_t cuda_swab32ll(uint64_t x) {
return MAKE_ULONGLONG(cuda_swab32(_LODWORD(x)), cuda_swab32(_HIDWORD(x)));
Expand Down
9 changes: 5 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ccminer_SOURCES = elist.h miner.h compat.h \
myriadgroestl.cpp cuda_myriadgroestl.cu \
lyra2/Lyra2.c lyra2/Sponge.c \
lyra2/lyra2RE.cu lyra2/cuda_lyra2.cu \
lyra2/lyra2REv2.cu lyra2/cuda_lyra2v2.cu \
lyra2/lyra2REv2.cu lyra2/cuda_lyra2v2.cu \
lyra2/Lyra2Z.c lyra2/lyra2Z.cu lyra2/cuda_lyra2Z.cu \
Algo256/cuda_bmw256.cu Algo256/cuda_cubehash256.cu \
Algo256/cuda_blake256.cu Algo256/cuda_groestl256.cu \
Expand Down Expand Up @@ -70,14 +70,15 @@ ccminer_SOURCES = elist.h miner.h compat.h \
qubit/qubit.cu qubit/qubit_luffa512.cu qubit/qubit_luffa512_alexis.cu qubit/deep.cu qubit/luffa.cu \
tribus/tribus.cu tribus/cuda_echo512_final.cu \
x11/x11.cu x11/fresh.cu x11/cuda_x11_luffa512.cu x11/cuda_x11_cubehash512.cu x11/cuda_x11_cubehash512_80.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_shavite512_alexis.cu x11/cuda_x11_simd512.cu x11/cuda_x11_echo.cu x11/cuda_x11_echo_alexis.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_shavite512_sp.cu x11/cuda_x11_simd512.cu x11/cuda_x11_echo.cu x11/cuda_x11_echo_sp.cu \
x11/cuda_x11_luffa512_Cubehash.cu x11/x11evo.cu x11/timetravel.cu x11/bitcore.cu \
x13/x13.cu x13/cuda_x13_hamsi512.cu x13/cuda_x13_hamsi512_alexis.cu x13/cuda_x13_fugue512.cu x13/cuda_x13_fugue512_alexis.cu \
x13/x13.cu x13/cuda_x13_hamsi512.cu x13/cuda_x13_hamsi512_sp.cu x13/cuda_x13_fugue512.cu x13/cuda_x13_fugue512_sp.cu \
x13/hsr.cu x13/cuda_hsr_sm3.cu x13/sm3.c \
x15/x14.cu x15/x15.cu x15/cuda_x14_shabal512.cu x15/cuda_x14_shabal512_alexis.cu x15/cuda_x15_whirlpool.cu \
x15/x14.cu x15/x15.cu x15/cuda_x14_shabal512.cu x15/cuda_x14_shabal512_sp.cu x15/cuda_x15_whirlpool.cu \
x15/whirlpool.cu x15/cuda_x15_whirlpool_sm3.cu \
x16r/x16s.cu x16r/x16r.cu x16r/cuda_x16_echo512.cu x16r/cuda_x16_fugue512.cu \
x16r/cuda_x16_shabal512.cu x16r/cuda_x16_simd512_80.cu \
x16r/cuda_x16_shavite512.cu \
x17/x17.cu x17/hmq17.cu x17/cuda_x17_haval256.cu x17/cuda_x17_sha512.cu \
x11/phi.cu x11/cuda_streebog_maxwell.cu \
x11/c11.cu x11/s3.cu x11/sib.cu x11/veltor.cu x11/cuda_streebog.cu
Expand Down
49 changes: 27 additions & 22 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,19 @@ am__ccminer_SOURCES_DIST = elist.h miner.h compat.h compat/inttypes.h \
tribus/tribus.cu tribus/cuda_echo512_final.cu x11/x11.cu \
x11/fresh.cu x11/cuda_x11_luffa512.cu \
x11/cuda_x11_cubehash512.cu x11/cuda_x11_cubehash512_80.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_shavite512_alexis.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_shavite512_sp.cu \
x11/cuda_x11_simd512.cu x11/cuda_x11_echo.cu \
x11/cuda_x11_echo_alexis.cu x11/cuda_x11_luffa512_Cubehash.cu \
x11/cuda_x11_echo_sp.cu x11/cuda_x11_luffa512_Cubehash.cu \
x11/x11evo.cu x11/timetravel.cu x11/bitcore.cu x13/x13.cu \
x13/cuda_x13_hamsi512.cu x13/cuda_x13_hamsi512_alexis.cu \
x13/cuda_x13_fugue512.cu x13/cuda_x13_fugue512_alexis.cu \
x13/cuda_x13_hamsi512.cu x13/cuda_x13_hamsi512_sp.cu \
x13/cuda_x13_fugue512.cu x13/cuda_x13_fugue512_sp.cu \
x13/hsr.cu x13/cuda_hsr_sm3.cu x13/sm3.c x15/x14.cu x15/x15.cu \
x15/cuda_x14_shabal512.cu x15/cuda_x14_shabal512_alexis.cu \
x15/cuda_x14_shabal512.cu x15/cuda_x14_shabal512_sp.cu \
x15/cuda_x15_whirlpool.cu x15/whirlpool.cu \
x15/cuda_x15_whirlpool_sm3.cu x16r/x16s.cu x16r/x16r.cu \
x16r/cuda_x16_echo512.cu x16r/cuda_x16_fugue512.cu \
x16r/cuda_x16_shabal512.cu x16r/cuda_x16_simd512_80.cu \
x16r/cuda_x16_shavite512.cu \
x17/x17.cu x17/hmq17.cu x17/cuda_x17_haval256.cu \
x17/cuda_x17_sha512.cu x11/phi.cu x11/cuda_streebog_maxwell.cu \
x11/c11.cu x11/s3.cu x11/sib.cu x11/veltor.cu \
Expand Down Expand Up @@ -272,25 +273,27 @@ am_ccminer_OBJECTS = ccminer-crc32.$(OBJEXT) ccminer-hefty1.$(OBJEXT) \
x11/cuda_x11_cubehash512.$(OBJEXT) \
x11/cuda_x11_cubehash512_80.$(OBJEXT) \
x11/cuda_x11_shavite512.$(OBJEXT) \
x11/cuda_x11_shavite512_alexis.$(OBJEXT) \
x11/cuda_x11_shavite512_sp.$(OBJEXT) \
x11/cuda_x11_simd512.$(OBJEXT) x11/cuda_x11_echo.$(OBJEXT) \
x11/cuda_x11_echo_alexis.$(OBJEXT) \
x11/cuda_x11_echo_sp.$(OBJEXT) \
x11/cuda_x11_luffa512_Cubehash.$(OBJEXT) x11/x11evo.$(OBJEXT) \
x11/timetravel.$(OBJEXT) x11/bitcore.$(OBJEXT) \
x13/x13.$(OBJEXT) x13/cuda_x13_hamsi512.$(OBJEXT) \
x13/cuda_x13_hamsi512_alexis.$(OBJEXT) \
x13/cuda_x13_hamsi512_sp.$(OBJEXT) \
x13/cuda_x13_fugue512.$(OBJEXT) \
x13/cuda_x13_fugue512_alexis.$(OBJEXT) x13/hsr.$(OBJEXT) \
x13/cuda_x13_fugue512_sp.$(OBJEXT) x13/hsr.$(OBJEXT) \
x13/cuda_hsr_sm3.$(OBJEXT) x13/ccminer-sm3.$(OBJEXT) \
x15/x14.$(OBJEXT) x15/x15.$(OBJEXT) \
x15/cuda_x14_shabal512.$(OBJEXT) \
x15/cuda_x14_shabal512_alexis.$(OBJEXT) \
x15/cuda_x14_shabal512_sp.$(OBJEXT) \
x15/cuda_x15_whirlpool.$(OBJEXT) x15/whirlpool.$(OBJEXT) \
x15/cuda_x15_whirlpool_sm3.$(OBJEXT) x16r/x16s.$(OBJEXT) \
x16r/x16r.$(OBJEXT) x16r/cuda_x16_echo512.$(OBJEXT) \
x16r/cuda_x16_fugue512.$(OBJEXT) \
x16r/cuda_x16_shabal512.$(OBJEXT) \
x16r/cuda_x16_simd512_80.$(OBJEXT) x17/x17.$(OBJEXT) \
x16r/cuda_x16_simd512_80.$(OBJEXT) \
x16r/cuda_x16_shavite512.$(OBJEXT) \
x17/x17.$(OBJEXT) \
x17/hmq17.$(OBJEXT) x17/cuda_x17_haval256.$(OBJEXT) \
x17/cuda_x17_sha512.$(OBJEXT) x11/phi.$(OBJEXT) \
x11/cuda_streebog_maxwell.$(OBJEXT) x11/c11.$(OBJEXT) \
Expand Down Expand Up @@ -634,18 +637,18 @@ ccminer_SOURCES = elist.h miner.h compat.h compat/inttypes.h \
tribus/tribus.cu tribus/cuda_echo512_final.cu x11/x11.cu \
x11/fresh.cu x11/cuda_x11_luffa512.cu \
x11/cuda_x11_cubehash512.cu x11/cuda_x11_cubehash512_80.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_shavite512_alexis.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_shavite512_sp.cu \
x11/cuda_x11_simd512.cu x11/cuda_x11_echo.cu \
x11/cuda_x11_echo_alexis.cu x11/cuda_x11_luffa512_Cubehash.cu \
x11/cuda_x11_echo_sp.cu x11/cuda_x11_luffa512_Cubehash.cu \
x11/x11evo.cu x11/timetravel.cu x11/bitcore.cu x13/x13.cu \
x13/cuda_x13_hamsi512.cu x13/cuda_x13_hamsi512_alexis.cu \
x13/cuda_x13_fugue512.cu x13/cuda_x13_fugue512_alexis.cu \
x13/cuda_x13_hamsi512.cu x13/cuda_x13_hamsi512_sp.cu \
x13/cuda_x13_fugue512.cu x13/cuda_x13_fugue512_sp.cu \
x13/hsr.cu x13/cuda_hsr_sm3.cu x13/sm3.c x15/x14.cu x15/x15.cu \
x15/cuda_x14_shabal512.cu x15/cuda_x14_shabal512_alexis.cu \
x15/cuda_x14_shabal512.cu x15/cuda_x14_shabal512_sp.cu \
x15/cuda_x15_whirlpool.cu x15/whirlpool.cu \
x15/cuda_x15_whirlpool_sm3.cu x16r/x16s.cu x16r/x16r.cu \
x16r/cuda_x16_echo512.cu x16r/cuda_x16_fugue512.cu \
x16r/cuda_x16_shabal512.cu x16r/cuda_x16_simd512_80.cu \
x16r/cuda_x16_shabal512.cu x16r/cuda_x16_simd512_80.cu x16r/cuda_x16_shavite512.cu\
x17/x17.cu x17/hmq17.cu x17/cuda_x17_haval256.cu \
x17/cuda_x17_sha512.cu x11/phi.cu x11/cuda_streebog_maxwell.cu \
x11/c11.cu x11/s3.cu x11/sib.cu x11/veltor.cu \
Expand Down Expand Up @@ -1108,13 +1111,13 @@ x11/cuda_x11_cubehash512_80.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
x11/cuda_x11_shavite512.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
x11/cuda_x11_shavite512_alexis.$(OBJEXT): x11/$(am__dirstamp) \
x11/cuda_x11_shavite512_sp.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
x11/cuda_x11_simd512.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
x11/cuda_x11_echo.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
x11/cuda_x11_echo_alexis.$(OBJEXT): x11/$(am__dirstamp) \
x11/cuda_x11_echo_sp.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
x11/cuda_x11_luffa512_Cubehash.$(OBJEXT): x11/$(am__dirstamp) \
x11/$(DEPDIR)/$(am__dirstamp)
Expand All @@ -1133,11 +1136,11 @@ x13/$(DEPDIR)/$(am__dirstamp):
x13/x13.$(OBJEXT): x13/$(am__dirstamp) x13/$(DEPDIR)/$(am__dirstamp)
x13/cuda_x13_hamsi512.$(OBJEXT): x13/$(am__dirstamp) \
x13/$(DEPDIR)/$(am__dirstamp)
x13/cuda_x13_hamsi512_alexis.$(OBJEXT): x13/$(am__dirstamp) \
x13/cuda_x13_hamsi512_sp.$(OBJEXT): x13/$(am__dirstamp) \
x13/$(DEPDIR)/$(am__dirstamp)
x13/cuda_x13_fugue512.$(OBJEXT): x13/$(am__dirstamp) \
x13/$(DEPDIR)/$(am__dirstamp)
x13/cuda_x13_fugue512_alexis.$(OBJEXT): x13/$(am__dirstamp) \
x13/cuda_x13_fugue512_sp.$(OBJEXT): x13/$(am__dirstamp) \
x13/$(DEPDIR)/$(am__dirstamp)
x13/hsr.$(OBJEXT): x13/$(am__dirstamp) x13/$(DEPDIR)/$(am__dirstamp)
x13/cuda_hsr_sm3.$(OBJEXT): x13/$(am__dirstamp) \
Expand All @@ -1154,7 +1157,7 @@ x15/x14.$(OBJEXT): x15/$(am__dirstamp) x15/$(DEPDIR)/$(am__dirstamp)
x15/x15.$(OBJEXT): x15/$(am__dirstamp) x15/$(DEPDIR)/$(am__dirstamp)
x15/cuda_x14_shabal512.$(OBJEXT): x15/$(am__dirstamp) \
x15/$(DEPDIR)/$(am__dirstamp)
x15/cuda_x14_shabal512_alexis.$(OBJEXT): x15/$(am__dirstamp) \
x15/cuda_x14_shabal512_sp.$(OBJEXT): x15/$(am__dirstamp) \
x15/$(DEPDIR)/$(am__dirstamp)
x15/cuda_x15_whirlpool.$(OBJEXT): x15/$(am__dirstamp) \
x15/$(DEPDIR)/$(am__dirstamp)
Expand All @@ -1180,6 +1183,8 @@ x16r/cuda_x16_shabal512.$(OBJEXT): x16r/$(am__dirstamp) \
x16r/$(DEPDIR)/$(am__dirstamp)
x16r/cuda_x16_simd512_80.$(OBJEXT): x16r/$(am__dirstamp) \
x16r/$(DEPDIR)/$(am__dirstamp)
x16r/cuda_x16_shavite512.$(OBJEXT): x16r/$(am__dirstamp) \
x16r/$(DEPDIR)/$(am__dirstamp)
x17/$(am__dirstamp):
@$(MKDIR_P) x17
@: > x17/$(am__dirstamp)
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# ccminer

suprminer 1.0 - sp-mod (May 2018) optimized x16r algo without any dev fee.
suprminer sp-mod (august 2018) optimized x16r algo without any dev fee.

Most optimizations come from sp:, so please support him.
Most optimizations come from sp, so please support him.

Overclock the core and memory for the best performance

This variant was tested and built on Linux (ubuntu server 14.04, 16.04, Fedora 22 to 25)
It is also built for Windows 7 to 10 with VStudio 2013, to stay compatible with Windows 7 and Vista.

Note that the x86 releases are generally faster than x64 ones on Windows, but that tend to change with the recent drivers.

The recommended CUDA Toolkit version is 9.1
The recommended CUDA Toolkit version is 9.2
------------------------------

This project requires some libraries to be built :
Expand Down
93 changes: 5 additions & 88 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
suprminer 1.1 (March 2018) optimized x16r algo without any dev fee.
suprminer spmod-git (august 2018) optimized x16r algo without any dev fee.

Most optimizations come from alexis, so please tip him (addr below)
Most optimizations come from sp, so please tip him

original README as follows:


suprminer spmod-git (august 2018) "x16r algo" optimized

ccminer 2.2.5 (Feb 2018) "x16r algo"
---------------------------------------------------------------
Expand Down Expand Up @@ -33,38 +33,7 @@ alexis:

This is a CUDA accelerated mining application which handle :

Decred (Blake256 14-rounds - 180 bytes)
HeavyCoin & MjollnirCoin
FugueCoin
GroestlCoin & Myriad-Groestl
Lbry Credits
JackpotCoin (JHA)
QuarkCoin family & AnimeCoin
TalkCoin
DarkCoin and other X11 coins
Chaincoin and Flaxscript (C11)
Saffroncoin blake (256 14-rounds)
BlakeCoin (256 8-rounds)
Qubit (Digibyte, ...)
Luffa (Joincoin)
Keccak (Maxcoin)
Pentablake (Blake 512 x5)
1Coin Triple S
Neoscrypt (FeatherCoin)
Revolver (X11evo)
Scrypt and Scrypt:N
Scrypt-Jane (Chacha)
Sibcoin (sib)
Skein (Skein + SHA)
Signatum (Skein cubehash fugue Streebog)
Tribus (JH, keccak, simd)
Woodcoin (Double Skein)
Vanilla (Blake256 8-rounds - double sha256)
Vertcoin Lyra2RE
Ziftrcoin (ZR5)
Boolberry (Wild Keccak)
Monero (Cryptonight)
Aeon (Cryptonight-lite)
c11,x16r,x16s,x17

where some of these coins have a VERY NOTABLE nVidia advantage
over competing AMD (OpenCL Only) implementations.
Expand All @@ -83,62 +52,10 @@ This code is based on the pooler cpuminer and inherits
its command line interface and options.

-a, --algo=ALGO specify the algorithm to use
bastion use to mine Joincoin
bitcore use to mine Bitcore's Timetravel10
blake use to mine Saffroncoin (Blake256)
blakecoin use to mine Old Blake 256
blake2s use to mine Nevacoin (Blake2-S 256)
bmw use to mine Midnight
cryptolight use to mine AEON cryptonight (MEM/2)
cryptonight use to mine XMR cryptonight, Bytecoin, Dash, DigitalNote, etc
c11/flax use to mine Chaincoin and Flax
decred use to mine Decred 180 bytes Blake256-14
deep use to mine Deepcoin
dmd-gr use to mine Diamond-Groestl
equihash use to mine ZEC, HUSH and KMD
fresh use to mine Freshcoin
fugue256 use to mine Fuguecoin
groestl use to mine Groestlcoin
hsr use to mine Hshare
jackpot use to mine Sweepcoin
keccak use to mine Maxcoin
keccakc use to mine CreativeCoin
lbry use to mine LBRY Credits
luffa use to mine Joincoin
lyra2 use to mine CryptoCoin
lyra2v2 use to mine Vertcoin
lyra2z use to mine Zerocoin (XZC)
myr-gr use to mine Myriad-Groest
neoscrypt use to mine FeatherCoin, Trezarcoin, Orbitcoin, etc
nist5 use to mine TalkCoin
penta use to mine Joincoin / Pentablake
phi use to mine LUXCoin
polytimos use to mine Polytimos
quark use to mine Quarkcoin
qubit use to mine Qubit
scrypt use to mine Scrypt coins (Litecoin, Dogecoin, etc)
scrypt:N use to mine Scrypt-N (:10 for 2048 iterations)
scrypt-jane use to mine Chacha coins like Cache and Ultracoin
s3 use to mine 1coin (ONE)
sha256t use to mine OneCoin (OC)
sia use to mine SIA
sib use to mine Sibcoin
skein use to mine Skeincoin
skein2 use to mine Woodcoin
skunk use to mine Signatum
timetravel use to mine MachineCoin
tribus use to mine Denarius
x11evo use to mine Revolver
x11 use to mine DarkCoin
x14 use to mine X14Coin
x15 use to mine Halcyon
x16r use to mine Pigeon
x16r use to mine Raven
x17 use to mine X17
vanilla use to mine Vanilla (Blake256)
veltor use to mine VeltorCoin
whirlpool use to mine Joincoin
wildkeccak use to mine Boolberry (Stratum only)
zr5 use to mine ZiftrCoin

-d, --devices gives a comma separated list of CUDA device IDs
to operate on. Device IDs start counting from 0!
Expand Down
2 changes: 1 addition & 1 deletion algos.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static const char *algo_names[] = {
"tribus",
"bitcore",
"x11evo",
"x11",
"xdna",
"x13",
"x14",
"x15",
Expand Down
Loading

0 comments on commit 33a7302

Please sign in to comment.