Skip to content

Update regexes for gminer to support multiple GPUs#45

Open
darknicht66 wants to merge 2 commits into
MoneroOcean:masterfrom
darknicht66:gminer-multi
Open

Update regexes for gminer to support multiple GPUs#45
darknicht66 wants to merge 2 commits into
MoneroOcean:masterfrom
darknicht66:gminer-multi

Conversation

@darknicht66
Copy link
Copy Markdown

mm.js currently only grabs the hashrate from the first GPU when benchmarking gminer. This updates the current regexes to return the total hashrate value if more than one GPU exists.

Example 1 - GMiner output for single GPU:

+---+-------+-----------+--------+------+-----+-------------+
| ID   GPU      Speed     Shares   Best  Power  Efficiency  |
+---+-------+-----------+--------+------+-----+-------------+
|  0  1070Ti  27.09 MH/s  259/0/0 73.68G 127 W  213.33 KH/W |
+---+-------+-----------+--------+------+-----+-------------+

Example 2 - GMiner output for multi-GPU:

+---+-----+-----------+--------+------+-----+-------------+
| ID  GPU     Speed     Shares   Best  Power  Efficiency  |
+---+-----+-----------+--------+------+-----+-------------+
|  0  3080  51.74 MH/s   42/0/0 900.6G 181 W  285.88 KH/W |
|  1  3080  54.32 MH/s   54/0/0 666.3G 185 W  293.61 KH/W |
|  2  3080  55.67 MH/s   47/0/0 653.3G 187 W  297.70 KH/W |
|  3  3080  55.61 MH/s   40/0/0 5.960T 210 W  264.82 KH/W |
|  4  3080  54.83 MH/s   48/0/0 505.7G 193 W  284.07 KH/W |
|          272.17 MH/s  231/0/0 5.960T 956 W  284.69 KH/W |
+---+-----+-----------+--------+------+-----+-------------+

Previously mm.js would return the hashrate of GPU 0 for both examples. i.e. 27.09 for example 1 and 51.74 for example 2. With the updated regexes it now returns the total hashrate in both examples... 27.09 for example 1 and 272.17 for example 2.

@MoneroOcean MoneroOcean force-pushed the master branch 2 times, most recently from d3f03aa to e754398 Compare May 10, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant