Conversation
|
Thank you very much for your contribution! I am reviewing this part of the code, and once I ensure it doesn't affect the existing CPU mining section, this PR will be merged. |
|
It would be great if you could ensure that the GPU mining tool is compatible with different platforms and operating systems, allowing as many GPUs as possible to participate in mining. |
Thanks. Let me know if something needs to be changed.
I tested this on Windows 10, Windows 11, Ubuntu 22.04, and Ubuntu 24.04 using NVIDIA GPUs. Since only the default NVIDIA drivers are required, any NVIDIA GPU worked fine. |
|
I have already contacted several beta testers. They are currently testing the miner and have provided valuable feedback. |
|
Compilation of OpenCL has added the 'ocl' feature switch. For details, please pull the latest code. |
|
@Iv-84 Hi Ivan, thank you for pushing Hacash forward with your GPU miner work. Could you please share your ERC20 or BEP20 address? The community would like to donate 500 USDT as a small token of appreciation and support. |
|
@YouKenTrust I really appreciate it. I'll take it as an incentive to continue developing Hacash. |
|
Windows 11 , AMD 7900XT is working, CPU is 7950X3D, Integrated Graphics Card is also working, but it's not working in AMD Software: Adrenalin Edition Driver. However, AMD Software: PRO Edition is working. The config.ini setting should be: |
Overview
Dear maintainers,
My name is Ivan, and I have been working on this OpenCL GPU miner for approximately 2–3 months. On a GeForce RTX 5090, the current implementation achieves around 100 Mh/s.
Although I am an experienced programmer, I am not a specialist in mining software. This implementation started from scratch, based on the legacy sources uploaded by jojoin in the hacash/x16rs repository.
This PR introduces a working GPU kernel for x16rs, along with optimizations and fixes that enable practical performance on modern hardware.
I kindly ask for your review, feedback, and guidance on further improvements.
Thank you,
Ivan
Challenges in x16rs GPU Mining
The x16rs algorithm sequence is unpredictable and varies with each nonce.
My Approach
Implementation Details
Benchmarks
Known Limitations / Future Work
Code Included
The full kernel is in this PR (x16rs_main), along with other supporting headers (util.cl, x16rs.cl, sha3_256.cl). The full "opencl" folder is required in order to launch the poworker with GPU mining enabled.
As a suggestion, the "x16rs/opencl" folder could be added as an asset on the Releases page.
Config file
GPU section is required in order to mine with GPU. I will open a new PR in hacash/doc to edit https://github.com/hacash/doc/blob/main/build/config_description.md
*️⃣ These are default values, change "use_opencl" to true to start mining with GPU