Commit Graph

73 Commits

Author SHA1 Message Date
XMRig
22f68bda8d Code cleanup based on Clang-Tidy. 2021-08-25 18:45:15 +07:00
XMRig
2d318425cf Removed shortName. 2021-08-11 22:26:34 +07:00
XMRig
48a43b9274 Implemented stable algorithm ids. 2021-08-11 03:46:34 +07:00
SChernykh
ca2ca9a2dd Fixed pause logic when both pause on battery and user activity are enabled 2021-02-21 16:33:57 +01:00
XMRig
fe33184a7d #2104 Added user configurable idle time. 2021-02-19 23:35:30 +07:00
XMRig
6b8ad2c1bb Simplified code, fixed broken pause. 2021-02-19 16:26:31 +07:00
SChernykh
fdd7a1969a Added pause-on-active option
Windows only for now. When set to true, pauses mining when user touches mouse or keyboard.
2021-02-14 15:32:18 +01:00
SChernykh
fac3902ae1 RandomX x86 JIT: remove redundant CFROUND 2021-01-07 16:20:00 +01:00
XMRig
03c10c8592 Restore Hashrate class interface. 2020-12-05 11:09:25 +07:00
XMRig
4569eea6f6 Move Profiler and more cleanup. 2020-12-04 09:23:40 +07:00
XMRig
f8e4fe30e0 Update base 2020-11-29 18:45:52 +07:00
XMRig
da62a0e65c Implemented static benchmark verification (--bench --seed --hash) 2020-10-24 13:53:49 +07:00
XMRig
ea7275fc28 Added Benchmark class. 2020-10-17 04:03:42 +07:00
SChernykh
6078052780 Benchmark: added more check hashes and a progress indicator 2020-10-15 08:23:47 +02:00
SChernykh
a046437d5f Added benchmark and stress test
Easy to use and zero configuration embedded benchmark/stress test.
2020-10-14 19:45:05 +02:00
SChernykh
2af99c3d83 More precise hashrate calculation
- Use only steady timestamp counters to guarantee correctness
- CPU backend: directly measure total hashrate using raw hash counters from each thread; update data more often on ARM CPUs because they're slower
- GPU backends: directly measure total hashrate too, but use interpolator with 4 second lag to fix variance from batches of hashes

Total hashrate is now measured directly (realtime for CPU, 4 seconds lag for GPU), so it might differ a bit from the sum of all thread hashrates because data points are taken at different moments in time.

Overhead is reduced a lot since it doesn't have to go through all threads to calculate max total hashrate on every timer tick (2 times a second).
2020-10-10 11:18:01 +02:00
cohcho
662bfeb48e Miner: fix state machine
Remove unexpected resume due to disconnect during dataset init
2020-10-06 13:34:19 +00:00
cohcho
90732ad690 Miner: filter invalid algos 2020-09-25 17:52:13 +00:00
SChernykh
f126fa112e RandomX: added performance profiler (for developers)
Also optimized Blake2b SSE4.1 code size to avoid code cache pollution.
2020-09-12 23:07:52 +02:00
XMRig
9829da5d4e Added command line option --pause-on-battery and renamed config option. 2020-07-23 15:45:01 +07:00
XMRig
7d65aa8ed7 Add tags 2020-07-23 10:26:56 +07:00
SChernykh
8c8a46acb8 Added mining on battery setting 2020-07-22 20:21:42 +02:00
SChernykh
2f1940ca58 Fixed hashrate and diff display for KawPow 2020-05-28 22:03:28 +02:00
XMRig
306dfe8d6a Use long tags. 2020-05-28 20:32:41 +07:00
SChernykh
f24da62db0 KawPow WIP 2020-05-27 16:19:57 +02:00
XMRig
317dc19ce8 Code cleanup. 2020-05-05 01:55:00 +07:00
XMRig
2771cf3582 Add 3rdparty prefix to all rapidjson includes. 2020-04-29 14:55:04 +07:00
SChernykh
838bd14948 AVX2 optimized code for AstroBWT
Added "astrobwt-avx2" parameter in config.json, it's turned off ("false") by default.

4-5% speedup on CPUs with proper AVX2 support (AMD Ryzen starting with Zen2, Intel Core starting with Haswell).

There will be no speedup on the following CPUs:

- Intel Pentium/Celeron don't support AVX2
- AMD Zen/Zen+ have only half-speed AVX

GCC compiled version is faster without AVX2, MSVC compiled version is faster with AVX2
2020-03-10 22:35:14 +01:00
XMRig
0a60a931fc Added printHealth to IBackend interface. 2020-02-14 01:11:53 +07:00
XMRig
a2d1c5a371 Fixed unwanted resume after dataset change. 2020-01-03 05:36:22 +07:00
XMRig
c6dbffcb95 Revert Platform::setProcessPriority 2019-12-27 03:19:03 +07:00
XMRig
0c926c5f57 #1385 "max-threads-hint" option now also limit RandomX dataset initialization threads. 2019-12-07 22:18:06 +07:00
XMRig
5d6abe4ae6 #1386 Added priority for RandomX dataset initialization threads. 2019-12-06 22:17:04 +07:00
SChernykh
0a5c12295d Added 1GB hugepages support for Linux 2019-12-05 19:39:47 +01:00
XMRig
75195e95d3 #1363 Fixed main thread priority. 2019-12-03 18:28:10 +07:00
XMRig
22b2ebafb7 Added "health-print-time" option. 2019-11-01 04:08:52 +07:00
XMRig
70acc63349 Added manual (e key) health reports. 2019-11-01 00:09:28 +07:00
XMRig
9b56d63d8c Fixed switching from non RandomX algorithm to RandomX. 2019-10-30 22:40:09 +07:00
XMRig
041fbc572e Added initial CUDA backend stub. 2019-10-23 16:37:56 +07:00
XMRig
ded54b2a78 Added "paused" field to API. 2019-10-21 21:27:05 +07:00
XMRig
3d262d82a0 Added class RxQueue, class Rx now thin static wrapper on top of RxQueue. 2019-10-06 07:47:41 +07:00
XMRig
8b14b414a4 More cleanup. 2019-10-03 07:45:25 +07:00
XMRig
5fb99d1bc8 #1202 Fixed algorithm verification in donate strategy. 2019-09-28 22:07:44 +07:00
XMRig
3d754cc369 #1180 Fixed race condition in nonce reset. 2019-09-20 00:30:20 +07:00
XMRig
d2cc7075d4 OclLib improvements. 2019-09-13 10:35:32 +07:00
XMRig
b8982a4652 Start mining threads only after RandomX dataset initialization. 2019-08-25 20:28:15 +07:00
XMRig
56141741ac Added ConfigPrivate class. 2019-08-18 01:01:28 +07:00
XMRig
dcff5696bf Added OclBackend, OclConfig, OclLaunchData, OclThread and OclThreads stubs. 2019-08-13 19:47:22 +07:00
XMRig
8f070d7648 More flexible API handling for mining backends. 2019-08-13 02:38:10 +07:00
XMRig
c40c6b3e77 Added pause and resume methods via JSON RPC 2.0 API. 2019-08-12 21:13:38 +07:00