Commit Graph

202 Commits

Author SHA1 Message Date
SChernykh
20843e713a Fixed AstroBWT OpenCL config generation 2022-03-16 10:15:38 +01:00
SChernykh
f9d8461dbd Dero HE (astrobwt/v2) OpenCL support 2022-03-14 20:13:31 +01:00
SChernykh
3cdfe6b30e Fixed unaligned memory accesses 2022-01-26 17:18:18 +01:00
SChernykh
8ee9866bdb KawPow OpenCL: build next period only when it's not in cache 2022-01-24 13:28:58 +01:00
SChernykh
41e39a956e KawPow OpenCL: use separate UV loop for building programs
Fixes #2890: uv_default_loop() can't be used there because UV loops are not thread safe.
2022-01-24 13:20:04 +01:00
Tony Butler
12a79ca6b7 Slash and burn EOL whitespace everywhere 2021-11-27 17:59:40 -07:00
Tony Butler
0f73d188e5 Cap max threads to 4096 with nVidia OpenCL 2021-10-11 04:17:01 -06:00
Tony Butler
5de34c4f71 Adjust API version logic 2021-10-11 04:17:01 -06:00
Tony Butler
b30521aa21 Adjust definitions and replace literal 0x4038 2021-10-11 04:17:01 -06:00
Tony Butler
de3f136abc Revert amd_bitalign/amd_bfe polyfills 2021-10-11 04:17:01 -06:00
Tony Butler
e973877e9f Apply "no-static-without-amd" fixes 2021-10-11 04:17:01 -06:00
Tony Butler
8ece2dd10d Attempt repair of cn/r output-array access problem 2021-10-11 04:17:01 -06:00
Tony Butler
a135c12bed Second try at fixing cn/r atomic_inc() call 2021-10-11 04:17:01 -06:00
Tony Butler
5cc1427c78 Attempt fix for cn/r on Apple-AMD 2021-10-11 04:17:01 -06:00
Tony Butler
dcf76473d4 Add Ellesmere correctly (still just a Polaris alias) 2021-10-11 04:17:01 -06:00
Tony Butler
4b3fc88473 Add every Apple AMD GPU type 2021-10-11 04:17:01 -06:00
Tony Butler
5177df95d6 Possibly fix problem with clGetProgramInfo crash 2021-10-11 04:17:01 -06:00
Tony Butler
30b6038925 Readjust OclDevice logic and add OCL_VENDOR_APPLE 2021-10-11 04:17:01 -06:00
XMRig
871f616d72 Merge branch 'GraftRandomX' of https://github.com/Stardock2018/xmrig into pr2563 2021-08-28 11:50:17 +07:00
Chris
f50872a500 Fixed Algorithm id
Algorithm id should be 0x72151267, second and third byte encode L3 and L2 size.
0x72 = 'r'
0x15 = 1 << 0x15 (L3 size)
0x12 = 1 << 0x12 (L2 size)
0x67 = 'g'
2021-08-27 10:31:36 -06:00
Chris
28c81ed18e Added Graft RandonX 2021-08-27 08:19:54 -06:00
XMRig
22f68bda8d Code cleanup based on Clang-Tidy. 2021-08-25 18:45:15 +07:00
XMRig
9da8428c4c Removed duplicate strings. 2021-08-11 22:07:43 +07:00
XMRig
60faa5e144 Fix typo. 2021-08-11 16:27:36 +07:00
XMRig
48a43b9274 Implemented stable algorithm ids. 2021-08-11 03:46:34 +07:00
XMRig
e2f9c8a04c Regenerate OpenCL headers. 2021-05-16 10:09:29 +07:00
Tony Butler
03b7f3316a Fix CL code for KawPow where it assumes everything is AMD 2021-05-15 20:34:57 -06:00
SChernykh
b3d14f51b9 Added support for Uplexa (cn/upx2 algorithm) 2021-04-17 14:53:42 +02:00
André Biseth
215e6e857a Added reference to limits.h in AdlLib_linux.cpp
Suggested solution to bug https://github.com/xmrig/xmrig/issues/2171
2021-03-11 11:50:05 +01:00
XMRig
ee31968547 #2066 Fixed AMD GPUs health data readings. 2021-01-30 02:42:59 +07:00
XMRig
5fc38edc78 #2066 Quick fix for AMD GPUs health data. 2021-01-29 01:23:35 +07:00
SChernykh
01d731ea5a AstroBWT OpenCL fixes
- Rewrote main BWT kernel to work properly on Navi
- Fixed nonce iterations in OclWorker
- Fixed memory allocation for AstroBWT
2020-12-27 16:44:35 +01:00
SChernykh
83d152f557 More static analysis fixes 2020-12-08 16:05:58 +01:00
SChernykh
d5f84a813d Fixed errors found by static analysis 2020-12-08 12:16:59 +01:00
XMRig
03c10c8592 Restore Hashrate class interface. 2020-12-05 11:09:25 +07:00
XMRig
9a120b979b Added GpuWorker class. 2020-12-04 22:25:28 +07:00
XMRig
ea7275fc28 Added Benchmark class. 2020-10-17 04:03:42 +07:00
XMRig
14892cf040 Removed m_bench field from Job class. 2020-10-16 20:29:11 +07:00
cohcho
9c3101b419 WorkerJob: fix calls of add/nextRound
WorkerJob::nextRound() doesn't require roundSize to be power of 2
Use CudaWorker::intensity(), OclWorker::intensity() to get device batch size
Sync nonce and device iteration
2020-10-15 14:56:37 +00:00
SChernykh
ccf13673aa Fixed roundSize() usage in OCL/CUDA 2020-10-15 14:39:54 +02:00
SChernykh
2ffbf20f20 Make round size power of 2 2020-10-15 14:29:15 +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
f8a0aa06c8 Added argon2/chukwav2 algorithm
New Turtlecoin algorithm. Source: https://github.com/turtlecoin/turtlecoin/blob/development/src/crypto/hash.h#L57
2020-10-12 08:26:57 +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
SChernykh
d5dd4ce89f RandomX: removed rx/loki
Loki forks to PoS on October 9th.
2020-10-02 17:02:52 +02:00
SChernykh
c07ee768ed KawPow: fixed OpenCL memory leak 2020-09-25 10:53:24 +02:00
SChernykh
e94b92b2aa Fixed Cryptonight OpenCL for AMD 20.7.2 drivers
Vega 64 + Windows 10 + AMD 20.7.2 drivers were broken on Cryptonight algorithms.
2020-09-19 23:12:05 +02:00
XMRig
eb9f98b8ce Better scripts/build.*.sh compatibility. 2020-08-23 15:46:56 +07:00
XMRig
1ca51c84e8 Fixed tag in OclLib. 2020-08-21 08:21:51 +07:00
XMRig
5850a2aa26 Disable GPU backends with static build on Linux. 2020-08-20 15:02:31 +07:00