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

881 Commits

Author SHA1 Message Date
Tanguy Pruvot
fe4ad36b73 intensity: sign warnings fixes min(i,u) 2014-11-17 14:48:55 +01:00
Tanguy Pruvot
f5e77452f0 stratum: prevent a booo when receiving a new block
seems to works in solo mode too...

note: anime wallet to check, different problem without reject-reason
2014-11-17 02:59:08 +01:00
Tanguy Pruvot
d062f93bf5 cuda: revert to SM 5.0 only by default 2014-11-17 00:32:38 +01:00
Tanguy Pruvot
dca216f992 min() and max(a,b) are not defined on linux,
in fact max exists in jansson includes (in tree only)

Add them to miner.h
2014-11-17 00:23:18 +01:00
Tanguy Pruvot
c859041993 quark/blake512 opt. pointed by sp without asm
indeed, the pragma unroll doesnt always make things faster

asm part... to check later
2014-11-17 00:01:32 +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
11dbbcc12d checkhash: some work on a faster variant (wip)
This should not be used for all algos... not enabled yet

todo: multiple nounces or blake32 style checkup
2014-11-16 17:37:02 +01:00
Tanguy Pruvot
14a41959f8 x11: switch to intensity 20 for SM>=5.2 750+970 2014-11-16 17:34:50 +01:00
Tanguy Pruvot
44a551c52e hashrate: ignore first loop speed (often lowered) 2014-11-16 17:34:50 +01:00
Tanguy Pruvot
59391e25ec api: fix includes after a test on mingw (cpuminer) 2014-11-16 17:34:50 +01:00
Tanguy Pruvot
ae29d984c1 vstudio: clean the project file 2014-11-16 17:34:50 +01:00
Tanguy Pruvot
fdd5d29071 x11: shavite and echo from sp (now ok on win32)
Previous echo commit was only increasing linux performance, and reducing
windows perf compared to the 1.4.9, this one seems to give at least
the 1.4.9 on windows, and the same on linux...

Shavite optimisation seems ok on both (use now 64 registers)

the launch_bounds will force the number of registers, so remove specific
Makefile rules on linux...

manual "cherry pick" with fixed line endings and some adaptations
2014-11-16 17:34:50 +01:00
Tanguy Pruvot
89aaafad2c prepare 1.5.0 2014-11-16 03:35:47 +01:00
sp-hash
e18a54e8fc sp echo optimisation + cleanup
Original Commit :
Removed sharedmem and reduced calculations with precalcing (ECHO hash).
750ti + 20KHASH(x11)

tpruvot notes:
Real change is more of 10 KH/s on stock clocks (but real)
launch bounds disabled, no perf increase with 64 registers
2014-11-16 03:08:46 +01:00
Tanguy Pruvot
851a26c2a2 api-sample: use non blocking sockets
fix php warnings and enable cpuminer compat
2014-11-15 21:47:17 +01:00
Tanguy Pruvot
c7008f3f6c update readme for final 1.4.9 (fix)
A dev version was released on http://cryptomining-blog.com/

Please update, the previous one has some bugs when using multiple
gpus and the API format has changed!
2014-11-15 03:40:39 +01:00
Tanguy Pruvot
2aea2c3ccc nvml: attempt to use another clock function
But no way, even recent 346 driver series or 343. Seems limited to
Tesla products...
2014-11-15 02:48:36 +01:00
Tanguy Pruvot
3e43553735 api: export card labels and count, renames stats command
renammed to "threads", stats was too much generic
2014-11-14 23:38:16 +01:00
Tanguy Pruvot
7a2fe83aaa nvapi: match gpu index with pci/x bus id
mapping by Name was a quick test...
2014-11-14 22:03:00 +01:00
Tanguy Pruvot
cc05128ae3 api: fix histo thread param 2014-11-14 20:30:42 +01:00
Tanguy Pruvot
124dc6ea57 nvapi: fix mapping of devices 2014-11-14 19:33:24 +01:00
Tanguy Pruvot
3652c708b9 api: add histo command and difficulty
enhance multi-gpu stats and fix nvapi indexes

change syslog prefix to ccminer (cpuminer remains)

api 1.1 modified - not officially released yet
2014-11-14 19:09:48 +01:00
Tanguy Pruvot
e82f5d4d75 restore divided hashrate for quark and jackpot
The previous way it was done was not correct (hashdone divided/2)

So add a factor 0.5 to the computed hashrate... to stay comparable
2014-11-14 13:45:02 +01:00
Tanguy Pruvot
3d2260acc4 stats: add support for current freq and pstate
windows only via nvapi, if nvml function is not supported
2014-11-14 02:48:27 +01:00
Tanguy Pruvot
e139736a2f api: better compat with telnet + help command
handle "\r\n" and terminate connection if command is not known
2014-11-14 01:32:10 +01:00
Tanguy Pruvot
63eb163e32 api: update sample rig ui
totals, readable uptime, autorefresh
2014-11-13 23:18:07 +01:00
Tanguy Pruvot
3dcfa5d84f api: add a sample rig web ui (php) 2014-11-13 21:09:42 +01:00
Tanguy Pruvot
dedcd06207 stats: fix typo for multigpu 2014-11-13 19:50:58 +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
1118d6c3db update readme and config.json for the 1.4.8 2014-11-12 17:53:22 +01:00
Tanguy Pruvot
2e0bc5e133 api: add api-bind param -b 0.0.0.0:4068
possible values :

 5000 or :5000 to use port 5000 (local only)
  0.0.0.0:5000 to allow connections from the network
127.0.0.1:4068 to only allow local connections (default)

Use -b 0 to disable the API system.

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-11-12 17:36:02 +01:00
Tanguy Pruvot
11a4bb1797 api: changes in data, global stuff in summary
PS: still under dev, wait the final 1.4.8 ;)
2014-11-12 16:49:44 +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
e1c84da07f stats: fix multi gpu value + add average parameter (-N) 2014-11-12 08:03:40 +01:00
Tanguy Pruvot
3550d6a889 Release 1.4.7
Note: Heavy and Mjollnir are broken on linux (only)...

To check in the next version... 4 hours i try to fix that without
success. djm34 variant seems ok but also make a lot of rejects.
2014-11-12 02:12:01 +01:00
Tanguy Pruvot
0317706464 config: handle ints, reals and false 2014-11-11 20:57:41 +01:00
Tanguy Pruvot
66845a9b36 vstudio: fix intellisense base types warnings 2014-11-11 20:19:50 +01:00
Tanguy Pruvot
88c8fa2973 config: fix -c param (json file) 2014-11-11 19:44:10 +01:00
Tanguy Pruvot
b128312efb cuda: store device SM in a global var
sample usage made for blake and fugue (higher intensity for SM5.2)

add these to cuda_helper and clean unused code
2014-11-11 19:11:16 +01:00
Tanguy Pruvot
99bbe380fd stats: reduce the average samples count to 20 2014-11-11 18:29:21 +01:00
Tanguy Pruvot
51b4f32420 stats: ignore erroneous data 2014-11-11 17:59:45 +01:00
Tanguy Pruvot
64cfe358cb stats: make them work also in vstudio 2014-11-11 17:44:31 +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
8259ed7f29 heavy fix for linux 2014-11-10 21:07:09 +01:00
Tanguy Pruvot
7a4e1bb327 Reduce keccak, deep & anime intensity + handle groestl -i param
default intensity was the max supported by the card, and perf is
not really better. I prefer to let it one under for cards with lower
memory (1GB)
2014-11-10 18:08:23 +01:00
Tanguy Pruvot
98451267d8 vstudio: std::min fix 2014-11-10 17:06:39 +01:00
Tanguy Pruvot
7acf987aba Add intensity to last algos and fix quark speed 2014-11-10 16:56:03 +01:00