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
5988e945ef
some cleanup and longpoll changes
2015-03-27 08:03:26 +01:00
Tanguy Pruvot
35cc5908ee
windows: return to normal priority, fix json decref
...
the jansson error seems only seen in windows debug mode
2015-03-10 19:14:15 +01:00
Tanguy Pruvot
8b1137d5ec
solo: get mining infos (diff/net hashrate)
...
will be exported in the api too...
2015-03-10 04:19:49 +01:00
Tanguy Pruvot
7f00bce5ae
longpoll: auto disable gbt when not supported
2015-03-10 01:09:47 +01:00
Tanguy Pruvot
c1cfb3a131
cmdline: fix multi-gpu intensity
...
the comma presence check was wrong...
2015-03-08 16:45:09 +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
10d4f4a96a
whirlpoolx: try to fix linux hashrates
...
bug reported by PVMining with a lot of cards (not seen here)
2015-03-08 14:21:39 +01:00
Tanguy Pruvot
f8f46bfe5b
whirlpoolx: fix for multi-gpu support
...
add also cputest entry and do some cleanup...
2015-03-07 16:33:04 +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
e17d19cf26
increase default priority to above normal
...
This enhances the hashrate when mining together with a cpu miner,
and doesn't slow down the machine, ccminer doesn't use a lot of cpu.
Note: this value doesn't require Admin rights on windows, unlike highest ones.
2015-03-02 11:51:28 +01:00
Tanguy Pruvot
81fd04a208
hashrate: Remove some extra units and allow 4 digits
...
to keep current X11 output (sample: 2950.01 kH/s)
2015-02-22 11:46:21 +00:00
Erik Mossberg
c41d9e7bb6
hashrate: format units based on the value size
2015-02-22 11:46:21 +00:00
Tanguy Pruvot
a537fa304c
Add basic API remote control
...
only allowed if --api-remote parameter or config key is set
and fix possible problem with urls containing user:password@
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-02-13 06:57:44 +01:00
Tanguy Pruvot
20e6ee1062
qubit: fix difficulty factor for yaamp
2015-02-11 18:42:04 +01:00
Tanguy Pruvot
5dd2534df9
Handle a default config file (ccminer.conf)
...
This allow to "debug" easily in visual studio (without project changes)
Prepare version 1.5.3, update README
2015-02-11 01:34:56 +01:00
KlausT
bb71232f18
don't call timeEndPeriod twice
2015-02-09 18:27:54 +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
e3fc059bd7
Hide cpu binding log messages
2015-02-08 18:39:20 +01:00
Tanguy Pruvot
872a55a180
Remove debug printf in cpu mask feature
2015-01-27 11:31:28 +01:00
Tanguy Pruvot
c7d3498bd8
myr-gr: clean up
2015-01-24 17:20:13 +01:00
Tanguy Pruvot
3938dce740
api: one decimal is enough for intensity
...
and fix windows build... missing __func define
2015-01-24 12:45:06 +01:00
Tanguy Pruvot
26b51a557b
Allow different intensity per device
...
and clean the old variables, no more required
2015-01-24 11:17:29 +01:00
Tanguy Pruvot
bba2df56d5
cpu-affinity: linux thread affinity was not set correctly
2015-01-23 04:59:19 +01:00
Tanguy Pruvot
833238cae5
cpu-affinity: fix windows process cpu affinity mask
2015-01-23 02:49:30 +01:00
Tanguy Pruvot
bec89724d5
logs: prevent multiple warnings
2015-01-22 05:55:50 +01:00
Tanguy Pruvot
cafd4477d7
Handle a maximum of 16 gpus (vs 8 before)
...
Some cards have 2 gpus on board...
2015-01-22 04:55:27 +01:00
Tanguy Pruvot
65cefa4a7d
cpu-priority: fix for windows process
2015-01-22 03:09:03 +01:00
Tanguy Pruvot
c3b6162899
Add cpu priority and affinity parameters
...
priority param value is from 0 (default idle like before) to 5 (highest)
affinity could be enhanced to set multiple cores... todo
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2015-01-22 02:08:05 +01:00
Tanguy Pruvot
f08bd79a6e
Intelligent duplicate shares check
...
Only enabled on first duplicate share
2014-12-19 12:49:04 +01:00
Tanguy Pruvot
150d6eb290
qubit: fix wrong pool difficulty
...
hmm... this is weird, should be 256 but make bad shares on pool diff 2
2014-12-19 09:43:35 +01:00
Tanguy Pruvot
fa7d744a6c
lyra2: make_uint2 and set pool difficulty
2014-12-15 09:48:27 +01:00
Tanguy Pruvot
7a0f7ab276
solo: stop submit of solved blocs (stale work)
...
rejects in solo mode often means "generated block is stale" (see Debug.log)
Most of current wallets only reports "rejected" reason without explanations.
So prevent this common error,
you can turn off this gbt feature (height check) with --no-gbt option.
2014-12-08 06:31:07 +01:00
Tanguy Pruvot
d09ec41251
api: allow -b <ip>, and set bind retry to 20sec
...
before, only -b <ip:port>, <port> or 0 (disable) was allowed
easier to set -b 0.0.0.0 with default port
2014-12-08 04:13:41 +01:00
Tanguy Pruvot
70743eb48d
solo: get bloc height and trap more errors
...
and disable multiple nonce on wallets,
a bloc cant be resolved twice ;)
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-12-07 16:53:05 +01:00
Tanguy Pruvot
49a73971c4
Enhance stale work detection + throughput fixes
...
seems to resolve solo mining lock on share.
export also computed solo work diff in api (not perfect)
In high rate algos, throughput should be unsigned...
This fixes keccak, blake and doom problems
And change terminal color of debug lines, to be selectable in putty,
color code is not supported in windows but selection is ok there.
2014-12-07 12:58:41 +01:00
Tanguy Pruvot
f9bba0ff1a
lyra2: small changes and code cleanup
2014-12-07 09:04:03 +01:00
Tanguy Pruvot
ef8a73d6aa
keccak: not compatible with second nonces (was broken)
...
Use djm34 new uint2 method to get a +40% boost (115 to 153MH/s)
2014-12-06 13:55:13 +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
c3bdb623e8
Check and submit multiple nonces in one loop
...
Added to most algos, checkhash function scans a big range
and can find multiple nonces at once if the difficulty is low.
Stop ignoring them, submit second one if found...
Clean the draft code for rc=2 implemented for blake and pentablake
btw... fix the reduced displayed hashrate when a nonce is found...
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2014-12-05 15:53:40 +00:00
Tanguy Pruvot
2dcf983290
solo: remove remains of stale debug logs
2014-12-01 06:05:03 +01:00
Tanguy Pruvot
56ed0fed05
blake: remove hashharder workaround
2014-12-01 05:58:01 +01:00
Tanguy Pruvot
56170bb32e
nvml: cleanup and check api restrictions
...
there was too much wrap_ prefixes, internal cleanup
SetAPIRestriction reports success but we can not query/set app clocks
2014-11-29 09:13:00 +01:00
Tanguy Pruvot
8ad180cc70
various small changes
...
heavy: reduce by 256 threads default intensity to all -i 20
cuda: put static thread init bools outside the code (made once)
api: fix nvml header to build without
2014-11-28 20:57:35 +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
cb3f893a85
nvml: fully disable it on windows
...
The DLL exists for x64 targets but seems not loadable
The nvml.cpp code was wrote to support both NVAPI and NVML on windows
because both apis have unique "features". like Fan RPM vs Fan Percent
2014-11-26 09:57:58 +01:00
Tanguy Pruvot
d3258d8bcd
syslog: allow to set a custom prefix
...
will allow kopiemtu livecd internal monitor to set it to cpuminer
2014-11-25 22:37:38 +01:00
Tanguy Pruvot
9b1ff1280e
Allow intermediate intensity (decimals)
...
Sample with -i 18.5
Adding 131072 threads to intensity 18, 393216 cuda threads
And with -i 19.5
Adding 262144 threads to intensity 19, 786432 cuda threads
2014-11-25 19:57:56 +01:00
Tanguy Pruvot
9a97f0cf6e
api: fix size_t printf exception in vstudio
2014-11-25 18:24:01 +01:00
Tanguy Pruvot
7e15f31706
api: pool query (uptime, ping, discon., url and user)
2014-11-25 17:39:02 +01:00
Tanguy Pruvot
1dfbe6dfb5
stratum: yaamp answer to extranonce subscribe lately
...
Fix for the extranonce feature, can also make the miner more stable
2014-11-24 20:14:15 +01:00
Tanguy Pruvot
b824a63cde
affinity: do not mix cpu count with gpu one
...
and update the old var with active gpus if -d is set
2014-11-22 22:14:20 +01:00
Tanguy Pruvot
3be08ad944
update readme (api, current changes, credits)
2014-11-22 16:43:49 +01:00
Tanguy Pruvot
2ea9da1415
stratum: add more checks on request id
2014-11-22 13:30:42 +01:00
Tanguy Pruvot
73f22b237a
Prepare trap of hardware/mem failures
2014-11-20 18:44:25 +01:00
Tanguy Pruvot
b24b65a9c9
api: add gpu pci bus id, unified id + bloc height
2014-11-18 16:25:44 +01:00
Tanguy Pruvot
582c971f2b
api: fix histo gpu/thr id mismatch
2014-11-17 19:11:26 +01:00
Tanguy Pruvot
b4ef7b981f
scan range: add boundary check, cant be > UINT32_MAX
2014-11-17 16:51:36 +01:00
Tanguy Pruvot
6a9b8a5ab2
hashlog: use work objects, put struct in miner.h
2014-11-17 15:58:11 +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
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
44a551c52e
hashrate: ignore first loop speed (often lowered)
2014-11-16 17:34:50 +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
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