1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-09 22:38:05 +00:00
Commit Graph

166 Commits

Author SHA1 Message Date
Tanguy Pruvot
82a7e62b30 skein: cleanup, strip uint2x4.h + update vstudio 2015-10-23 13:32:18 +02:00
Tanguy Pruvot
4868c412b0 windows: add support for SM 2.1, drop SM 3.5 (x86)
Mostly to do compatibilty tests, SM 2.1 support is very limited

SM 3.0 code should run on SM 3.5 (only a few cards use this arch)

As i can't test SM 3.5, its best to let users do their own tests...
2015-10-15 23:02:35 +02:00
Tanguy Pruvot
32f212469b lyra2/v2: fixes for vstudio 2015-10-14 03:31:18 +02:00
Tanguy Pruvot
ab5cc7162e refactor: create bench.cpp and algos.h
Also enhance multi-thread benchmark synchro. with pthread barriers
2015-10-11 00:10:27 +02:00
Tanguy Pruvot
5f12943de5 whirlpool: add algo free function + vstudio 2015-10-06 23:53:03 +02:00
Tanguy Pruvot
b3adebdf2a lyra2v2: improve speed on SM 5.2 (Cuda 6.5) with sp unrolls
Reduce a bit the 750Ti speed but improve a lot the 9xx speed.

Keep compat for SM 3/3.5 in a second file..

Note: With this code and Cuda 7.5, the speed won is the reverse...
      May be "reverted" soon
2015-10-04 20:22:45 +02:00
Tanguy Pruvot
ac1f6ad1bb try vstudio MinimalRebuild flag... 2015-09-04 21:14:58 +02:00
Tanguy Pruvot
01f3183c31 bmw algo for MDT, with midstate
which could be extracted from json too

replace a satcoin by another one ;)

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-08-22 15:01:51 +02:00
Tanguy Pruvot
e4414752c4 vstudio: lyra warning fixes + project dups 2015-08-22 14:57:15 +02:00
Tanguy Pruvot
e3548f46f3 drop animecoin support
no more really minable... just minable in french
2015-08-22 12:35:22 +02:00
Tanguy Pruvot
da8a31c4e5 vstudio: restore missing x15 whirlpool 2015-08-18 12:26:52 +02:00
Tanguy Pruvot
d4e191610e Import and adapt lyra2v2
not tested on windows and with SM <= 5
2015-08-18 09:27:11 +02:00
Tanguy Pruvot
3788fef9fd Restore whirlpoolx algo 2015-08-15 06:53:40 +02:00
Tanguy Pruvot
6b69246c33 intermediate 1.6.5-C11 release for chaincoin 2015-07-06 22:40:48 +02:00
Tanguy Pruvot
c5df142124 Add c11 algo (x11 variant)
Used by Chaincoin and Flaxscript
2015-06-29 11:46:16 +02:00
Tanguy Pruvot
15293d063f remove pluck algo
Supcoin seems.... dead and the algo was not supported on all devices
2015-06-28 20:48:23 +02:00
Tanguy Pruvot
576884b199 refactor: move pool functions in pools.cpp
ccminer.cpp begins to be too big...
2015-06-18 04:44:52 +02:00
Tanguy Pruvot
9f5744d4c0 luffa/cube: fine tuning of maxregcount for the 750Ti
This allow to get 69 regs used (tested on linux) 69 or 72 make
the compiler to use 64 regs which is not enough on the 750Ti
for optimal performance...
2015-06-17 03:58:31 +02:00
Tanguy Pruvot
efd507fb3b vstudio: add missing ssl/crypto includes for bignum 2015-06-11 00:17:44 +02:00
Tanguy Pruvot
39238f077d diff: import bitcoin bignum class for conversions
BIGNUM is defined in OpenSSL...
2015-06-11 00:03:19 +02:00
Tanguy Pruvot
5636e2be5e remove double reference to luffa algo
doomcoin is dead but the luffa algo is still used (Joincoin)..

keep doom as alias for compat... rename functions...
2015-06-10 22:10:16 +02:00
Tanguy Pruvot
82908b3f67 vstudio: regroup options and revove AVX requirement
+ openmp for scrypt code...
2015-06-08 16:58:07 +02:00
Tanguy Pruvot
298573b45d Drop Whirlpool and whirpoolx algos, no more used...
Vanillacoin is now PoS only
2015-05-19 01:05:38 +02:00
Tanguy Pruvot
d9b0312897 x64: fix some size_t warnings 2015-05-17 04:56:42 +02:00
Tanguy Pruvot
4c3892f268 Merged skeincoin algo for SM5+ devices
Should give same or better than SP and klaus versions

Keep old code for older devices and skein2 compat

Linux perf: 750Ti 78MH/s and GTX 970 260MH/s

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-05-12 21:32:33 +02:00
Tanguy Pruvot
afe57f8341 rename skein2 to c++, no cuda kernel code
and some other changes...
2015-05-12 04:41:11 +02:00
Tanguy Pruvot
75313cbf1c neoscrypt: put all files in same vs filter 2015-05-05 16:25:18 +02:00
Tanguy Pruvot
73af5c583c neoscrypt: fixes for windows 2015-05-05 16:15:53 +02:00
Tanguy Pruvot
e1b274ef65 neoscrypt: fix bad source file ext (cu/cpp) 2015-05-04 13:37:56 +02:00
Tanguy Pruvot
15584e4f05 neoscrypt: adapt for visual studio compat
todo: fix SM 3.0 builds
2015-05-03 15:53:02 +02:00
Tanguy Pruvot
65c1d787e7 add neoscrypt based on djm34 work
indent, link --intensity, and some clean up

Tested speed on linux ~= 160kH/s on a 750Ti (Black Edition)

To be continued...
2015-05-03 14:38:15 +02:00
Tanguy Pruvot
ca9ec1b803 scrypt: compile also titan kernel with recent SM 2015-04-21 16:18:21 +02:00
Tanguy Pruvot
9208888c57 scrypt: assign specific compute models to the kernels 2015-04-21 11:12:41 +02:00
Tanguy Pruvot
9dc78da2ee import and adapt scrypt from cudaminer project
scrypt-jane under work...
2015-04-18 18:24:55 +02:00
Tanguy Pruvot
7963dbb438 skein2 algo for woodcoin
Also known as Double Skein

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-04-14 02:03:58 +02:00
Tanguy Pruvot
48515ad707 groestl: rename included cuda files 2015-04-06 23:46:34 +02:00
Tanguy Pruvot
f86784ee56 Add skein algo (Skeincoin, Myriad, Unat...)
SKEIN512 + SHA256

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-03-27 15:24:27 +01:00
Tanguy Pruvot
a37e909db9 Add zr5 algo (for SM 3.5+)
uint4 copy + keccak cleanup, groestl: small uint4 opt

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-03-27 15:16:25 +01:00
Tanguy Pruvot
77c737ff72 various small changes and update readme 2015-03-08 16:33:53 +01:00
Tanguy Pruvot
7939dce0aa pluck: adaptation from djm repo
remains the cpu validation check to do...

throughput for this algo is divided by 128 to keep same kind of intensity values (default 18.0)
2015-03-08 15:16:11 +01:00
Tanguy Pruvot
0019936328 Import Whirlpoolx algo from alexis78 repo
remove trailing spaces and move to x15 folder
2015-03-07 14:06:33 +01:00
Tanguy Pruvot
7048300ab8 enhance 64bit builds performance
x11 perf is now close to x86 binary, but its not the case on all algos.

Add also a build.cmd script to remember how to build on windows cmdline
2015-03-05 18:18:56 +01:00
Tanguy Pruvot
00803b0b8d Revert "I use CUDA7 on windows"
This reverts commit a74df25834.
2015-02-08 18:41:40 +01:00
Tanguy Pruvot
a74df25834 I use CUDA7 on windows 2015-02-08 18:41:28 +01:00
Tanguy Pruvot
10a5e13fb3 Add windows icon and version 2015-02-08 18:31:46 +01:00
Tanguy Pruvot
c5b349e079 Add Lyra2 algo, based on Vertcoin published code
Seems to be djm34 work, i recognize the code style ;)

Code was cleaned/indented and adapted to my fork...

Only usable on the test pool until 16 december 2014!
2014-12-06 11:28:26 +01:00
Tanguy Pruvot
f524917bef update readme and openssl (1.0.1i) 2014-11-27 12:01:11 +01:00
Tanguy Pruvot
1b65cd05cc heavy: add error checks, fix strict aliasing and linux
The core problem was the cuda hefty Thread per block set to high
but took me several hours to find that...

btw... +25% in heavy 12500 with 256 threads per block... vs 128 & 512
if max reg count is set to 80...
2014-11-27 09:14:59 +01:00
Tanguy Pruvot
6ae28162db various extern cleanup + api history uids and gpu SM
uids could be useful to create graphes from history data

Note: please do a clean build after this commit (changes in miner.h)
2014-11-26 11:55:42 +01:00
Tanguy Pruvot
71f9003901 x13: use tsiv hamsi implementation (+70KH) 2014-11-24 23:01:41 +01:00
Tanguy Pruvot
a33058b554 vstudio: reduce diff, try Klaus options 2014-11-23 22:11:46 +01:00
Tanguy Pruvot
9a8b7ff0d7 api: add cpu temp/freq (linux) 2014-11-23 08:26:38 +01:00
sp-hash
f0d91ab8a6 Luffa and simd merged to one kernal.
Small echo rewrite. +10KHASH on the 650(compute 3.0)

tpruvot: add Linux Makefile - Force to 80 registers (else -30KH/s)

Note : the hashrate seems more constant with this change
2014-11-23 07:04:07 +01:00
Tanguy Pruvot
e72c6d4785 Update jansson windows sources to 2.6
There was sometimes problems with float values close to 0 (like 0.001)
2014-11-22 16:20:10 +01:00
Tanguy Pruvot
d062f93bf5 cuda: revert to SM 5.0 only by default 2014-11-17 00:32:38 +01:00
Tanguy Pruvot
438308b3a2 Rework benchmark mode and min/max range
Was maybe my fault, but the benchmark mode was
always recomputing from nonce 0.

Also fix blake if -d 1 is used (one thread but second gpu)

stats: do not use thread id as key, prefer gpu id...
2014-11-16 23:28:18 +01:00
Tanguy Pruvot
ae29d984c1 vstudio: clean the project file 2014-11-16 17:34:50 +01:00
Tanguy Pruvot
15eea1bc81 api: add nvapi for windows binaries
nvml.dll doesnt exists for 32bit binaries! use nvapi to get infos

seems to have more/different features than NVML... like pstate etc..

This is nvapi r343 : https://developer.nvidia.com/nvapi

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-13 19:01:36 +01:00
Tanguy Pruvot
e40a7a720c ccminer: rename main file and switch to C++
There was a different behavior on linux and visual studio

That was making it hard to link functions correctly

That remove some ifdef / extern "C" requirements

note about x86 releases, x86 nvml.dll is not installed on Windows x64!
2014-11-13 16:11:35 +01:00
Tanguy Pruvot
49f3c454c2 Add nvml for GPU monitoring (squashed)
Based on mwhite73 <marvin.white@gmail.com> implementation

  Linked to the api system

  Also fix Makefile to support standard c++ files
  This prevent nvcc use without device code

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-13 14:36:18 +01:00
Tanguy Pruvot
f58b2d3d21 api: fixes for windows (to finish) 2014-11-12 12:56:20 +01:00
Tanguy Pruvot
4958ce6007 api: add a basic stats api on port 2068
you can use PHP api-example.php as a json wrapper...

to be tested on windows...

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-12 12:23:11 +01:00
Tanguy Pruvot
ec709af62f Store and display average hashrate (benchmark + on share)
Displayed data is the average of the last 50 scans in the 5 last minutes

Also move cuda common functions in a new file (cuda.cu)

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-11 16:43:23 +01:00
Tanguy Pruvot
4c3964539f Fix vc debug builds, missing symbols 2014-11-06 17:42:01 +01:00
Tanguy Pruvot
5e8ff5226b update curl prebuilt libs to a light 7.38.0
curl built from tpruvot/curl-for-windows project with the HTTP_ONLY define

This project doesnt require SSH, LDAP and all the internel protocols ;)

Remove 200KB to the final binaries
2014-11-04 14:47:28 +01:00
Tanguy Pruvot
6169bf683b Add S3 Algo (1Coin)
Simple addition of the algo using existing X11 code
2014-10-26 09:10:58 +01:00
Tanguy Pruvot
1ee1462011 msvc: fix the LTCG warning 2014-10-20 05:39:44 +02:00
Tanguy Pruvot
d8a23fa970 Tune quark part of Xn funcs
based on klaus commits, will increase a bit speed of most algos

PS: main increase is due to the register count tuning in Makefile

and for skein512 on linux, its the ROTL64

but almost no changes on X11 : 2648MH/s vs 2630 before
2014-10-20 03:15:17 +02:00
Tanguy Pruvot
0720797f1b Add proper keccak-256 (maxcoin)
Cleaned from djm34 repo, tuned for the 750 Ti
2014-10-17 06:46:20 +02:00
Tanguy Pruvot
9f3c6b0520 Include windows curl and openssl prebuilt libs
Curl 7.35 without SSH2
OpenSSL 1.0.1e
ZLib 1.2.8

built with https://github.com/peters/curl-for-windows
2014-09-30 06:25:38 +02:00
Tanguy Pruvot
c0b5513316 Try some obscure cuda flags (kbomba)
http://devblogs.nvidia.com/parallelforall/separate-compilation-linking-cuda-device-code/
2014-09-27 13:58:29 +02:00
Tanguy Pruvot
a6fcc8fdb6 use cudart_static.lib, keep SM 5.0 by default
SM 5.2 works also on the 750 Ti but if we specify both at compile time,
hash speed will be reduced (the 750Ti will use 5.2 which is not optimal)
2014-09-27 12:53:19 +02:00
Tanguy Pruvot
5579b91cfb build for both GM104 and GM204
For the GTX 750 and new 970/980

also fix -a luffa parameter for 1.4.4 release
2014-09-27 09:46:52 +02:00
Tanguy Pruvot
402e70f636 Update VS Project 2014-09-10 00:27:01 +02:00
Tanguy Pruvot
7cc5222394 Move common check_cpu functions to root 2014-09-10 00:27:01 +02:00
Tanguy Pruvot
402e416853 Add pentablake algo (-a penta)
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-09-09 21:58:58 +02:00
Tanguy Pruvot
42eafcbe85 Put CRC-32 function in a new unit
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-09-06 19:41:48 +02:00
Tanguy Pruvot
5682b7d241 blake: add also blakecoin (8-rounds) variant 2014-09-05 19:12:29 +02:00
Tanguy Pruvot
69616b37ac hashlog: prepare store of scanned range 2014-09-03 14:49:13 +02:00
Tanguy Pruvot
2d42ae6de5 stratum: handle a small cache of submitted jobs
Prevent to send duplicated shares on some pools like hashharder..

This cache keeps submitted job/nounces of the last 15 minutes

so, remove exit on repeated duplicate shares,
    the submitted cache now handles this problem.

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-09-02 08:01:26 +02:00
Tanguy Pruvot
c17d11e377 add "blake" 256, 14 rounds (for NEOS blake, not BlakeCoin)
also remove "missing" file, its old and not compatible with ubuntu 14.04
2014-09-01 05:53:36 +02:00
Tanguy Pruvot
e878df8eb5 vstudio: disable incremental linking 2014-08-28 01:45:51 +02:00
Tanguy Pruvot
675aa4aea4 vstudio: remove dependency to msvcp dll
using the /MT code flag, binary is only 7K bigger and remove
the requirement of a 500KB dll...
2014-08-26 07:12:44 +02:00
Tanguy Pruvot
bcc19981c3 windows: use a static lib of pthreads 2.9.1
built with nmake clean VC-static
2014-08-26 05:10:23 +02:00
Tanguy Pruvot
bcb15f85a1 vstudio unix2dos project files 2014-08-26 03:40:07 +02:00
Tanguy Pruvot
aefb64c369 windows: implements the color option
based on old git implementation (2009)

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-08-26 03:39:23 +02:00
Tanguy Pruvot
10314d844f whirlpool: remove dead code, win 2ms in final hash 2014-08-24 04:44:18 +02:00
Tanguy Pruvot
ee2f6dece5 x17: update vstudio project 2014-08-23 22:44:17 +02:00
Tanguy Pruvot
64e8cd3f98 add x17 algo, cleaned djm34 commit
todo: visual studio...
2014-08-23 22:44:17 +02:00
Tanguy Pruvot
2c24bc93d4 Makefile: luffa was using more than 80 regs (10 vs 14ms)
add easy switch for nvcc target arch

and move duplicated sha2 to sph folder
2014-08-23 22:04:38 +02:00
Tanguy Pruvot
d928317981 vs2013: hamsi need 72 registers, simd 64 2014-08-22 08:29:09 +02:00
Tanguy Pruvot
09ecb490c6 vs2013: simplify project options 2014-08-22 04:09:22 +02:00
Tanguy Pruvot
912ef1215d small reg tunes, rename whirlcoin to whirl 2014-08-21 02:57:10 +02:00
Tanguy Pruvot
0c27bd42a4 whirlcoin: update vstudio project 2014-08-20 08:10:51 +02:00
Tanguy Pruvot
bc2eb75758 Add fresh algo (based on djm34 code)
Cleaned up and adapted to my changes (cputest added)

Remove Makefile.in which should be in gitignore

(Plz refresh it with ./config.sh to compile on linux)
2014-08-19 18:31:26 +02:00
Tanguy Pruvot
d9ea5f72ce Remove duplicated defines present in cuda_helper.h
also add cudaDeviceReset() on Ctrl+C for nvprof
2014-08-19 03:29:11 +02:00
Tanguy Pruvot
a9a3ad8afc cuda: check for errors on cuda mem alloc 2014-08-17 22:41:05 +02:00
Tanguy Pruvot
2c9e4127de libs: only copy the 32 or 64bit in output folder 2014-08-12 14:47:08 +02:00
Tanguy Pruvot
06763c20b1 Implement x14 (cuda + cpu functions)
Project was updated for VS2013 and CUDA SDK 6.5

add also a --cputest function to dump cpu hash results

TODO: x15 is not fully functional, but first loop seems ok

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-08-12 14:47:03 +02:00
Christian Buchner
d99b91ea65 adding third party X13 and Diamond Groestl code contributions. 2014-06-15 14:31:20 +02:00